public void notification() { DataTable dt = new DataTable(); Int64 distributorID = Convert.ToInt64(Session["DistributorID"]); DataSet ds = ssc.GetNotification(distributorID, Convert.ToInt32(Request.QueryString["MsgId"])); if (ds.Tables.Count > 0) { if (ds.Tables[1].Rows.Count > 0) { RepeaterDistributor.DataSource = ds.Tables[1]; RepeaterDistributor.DataBind(); txtTextString.Text = ds.Tables[0].Rows[0]["NotificationText"].ToString(); for (int i = 0; i < RepeaterDistributor.Items.Count; i++) { CheckBox CheckBox2 = (CheckBox)RepeaterDistributor.Items[i].FindControl("CheckBox2"); CheckBox2.Checked = true; //CheckBox2.Visible = false; //Label lbl = (Label)RepeaterDistributor.Items[i].FindControl("distributorName"); //lbl.Visible = false; RepeaterDistributor.Visible = false; } } } Label1.Text = "Received"; btnSave.Visible = false; btnReset.Visible = false; }
public void FillData() { try { int userid = Convert.ToInt32(Session["LoginId"]); int distributorID = Convert.ToInt32(Session["DistributorID"]); Distributor[] ds = ssc.GetDistributorDDLService(userid, distributorID); RepeaterDistributor.DataSource = ds; RepeaterDistributor.DataBind(); } catch (Exception ex) { } }