/// <summary> /// Bind currency according to current company /// </summary> protected void fillcurrency() { objadmin.action = "select"; objadmin.nid = Session["companyid"].ToString(); ds = objadmin.ManageCompany(); if (ds.Tables[0].Rows.Count > 0) { strcurrency = ds.Tables[0].Rows[0]["symbol"].ToString(); } }
public void bindgrid() { objda.action = "select"; objda.nid = ""; ds = objda.ManageCompany(); if (ds.Tables[0].Rows.Count > 0) { getpageindex(ds.Tables[0].Rows.Count); dgnews.DataSource = ds; dgnews.DataBind(); divnodatafound.Visible = false; dgnews.Visible = true; } else { divnodatafound.Visible = true; dgnews.Visible = false; } }