private void GetData() { complaint_keeper ck = new complaint_keeper (); ArrayList arr = ck.GetData(int.Parse(Session["dealer_id"].ToString())); Session["da"] = arr[0]; Session["ds"] = arr[1]; }
protected void Button1_Click(object sender, EventArgs e) { for (int i = 0; i < GridView1.Rows.Count; i++) { CheckBox chk = ((CheckBox)(GridView1.Rows[i].FindControl("CheckBox1"))); if (chk.Checked) { GridViewRow gr = GridView1.Rows[i]; int id = int.Parse(((Label)(gr.FindControl("Label1"))).Text); complaint_keeper ck = new complaint_keeper(); ck.update_status(id); GetData(); SetData(); } } }