示例#1
0
 protected void btnIssueSubCategory_Click(object sender, EventArgs e)
 {
     try
     {
         uc.AddIssueSubCategory(ddlTicketCategoryMainissue.SelectedItem.Value, ddlTicketCategoryMainissue.SelectedItem.Text, ddlFacingIssue.SelectedItem.Value, ddlFacingIssue.SelectedItem.Text, txtFacingIssueSubCategoryName.Text);
         string textmsg = "Record Added Successfully !";
         ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpopsuccess('" + textmsg + "')</script>", false);
         txtFacingIssueSubCategoryName.Text = string.Empty;
     }
     catch (Exception ex)
     {
         string text = ex.Message.ToString();
         ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
     }
 }