protected void btnsave_Click(object sender, EventArgs e) { int ID = BLL_Crew_Evaluation.INSERT_Category(txtCatName.Text.Trim(), GetSessionUserID()); txtCatName.Text = ""; txtfilter.Text = ""; Load_CategoryList(); }
protected void btnSaveAndClose_Click(object sender, EventArgs e) { int ID = BLL_Crew_Evaluation.INSERT_Category(txtCatName.Text.Trim(), GetSessionUserID()); txtCatName.Text = ""; txtfilter.Text = ""; Load_CategoryList(); string js = "closeDiv('dvAddNewCategory');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", js, true); }