Exemple #1
0
 protected void btnAdd_Click(Object Sender, EventArgs e)
 {
     if (Request.Form[hdnId.UniqueID] == "0")
     {
         oReport.AddGroup(txtName.Text, (chkEnabled.Checked == true ? 1 : 0));
     }
     else
     {
         oReport.UpdateGroup(Int32.Parse(Request.Form[hdnId.UniqueID]), txtName.Text, (chkEnabled.Checked == true ? 1 : 0));
     }
     Response.Redirect(Request.Path);
 }