protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
CheckBox chkbx = (CheckBox)sender;
//GridDataItem item = (GridDataItem)chkbx.NamingContainer;
Label lblPageId1 = (Label)((chkbx.NamingContainer).FindControl("LblPageId"));
int text1 =Convert.ToInt32(lblPageId1.Text);
bool chkSatus1 = chkbx.Checked;
// perform Update operation
int ReturnPageid1 = ObjLogic.UpdateHeaderStatus(text1, chkSatus1);
}
protected void CheckBox2_CheckedChanged(object sender, EventArgs e)
{
CheckBox chkbx = (CheckBox)sender;
//GridDataItem item = (GridDataItem)chkbx.NamingContainer;
Label lblPageId2 = (Label)((chkbx.NamingContainer).FindControl("LblPageIdsub"));
int text2 =Convert.ToInt32(lblPageId2.Text);
bool chkSatus2 = chkbx.Checked;
// perform Update operation
int ReturnPageid2 = ObjLogic.UpdateHeaderStatus(text2, chkSatus2);
}
No comments:
Post a Comment