Exemple #1
0
 protected void btnbtnIssueCategory_Click(object sender, EventArgs e)
 {
     try
     {
         uc.AddIssueCategory(ddlTicketCategory.SelectedItem.Value, ddlTicketCategory.SelectedItem.Text, txtFacingIssueName.Text);
         string textmsg = "Record Added Successfully !";
         ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpopsuccess('" + textmsg + "')</script>", false);
         txtFacingIssueName.Text = string.Empty;
         LoadFilter();
     }
     catch (Exception ex)
     {
         string text = ex.Message.ToString();
         ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
     }
 }