示例#1
0
 protected void btnTicketCategory_Click(object sender, EventArgs e)
 {
     try
     {
         if (txtTicketCategory.Text.Trim().Length > 0)
         {
             uc.AddTicketCategory(txtTicketCategory.Text);
             string textmsg = "Record Added Successfully !";
             ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpopsuccess('" + textmsg + "')</script>", false);
             txtTicketCategory.Text = string.Empty;
             loadTicketCategory();
             gvbindTicketCategory();
         }
         else
         {
         }
     }
     catch (Exception ex)
     {
         string text = ex.Message.ToString();
         ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
     }
 }