protected void btnUpdateSubcatgory_Click(object sender, EventArgs e) { try { uc.UpdateIssueSubCategory(ddlFacingIssueUpdate.SelectedItem.Value, txtFacingIssueSubCategoryName.Text); string textmsg = "Record Updated 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); } }