protected void btnsave_Click(object sender, EventArgs e) { int ID = BLL_Crew_Evaluation.INSERT_Criteria(txtCriteria.Text.Trim(), UDFLib.ConvertToInteger(ddlCatName.SelectedValue), UDFLib.ConvertToInteger(ddlGradingType.SelectedValue), GetSessionUserID()); txtCriteria.Text = ""; txtfilter.Text = ""; Bind_QuestionBank(); }
protected void btnSaveAndClose_Click(object sender, EventArgs e) { int ID = BLL_Crew_Evaluation.INSERT_Criteria(txtCriteria.Text.Trim(), UDFLib.ConvertToInteger(ddlCatName.SelectedValue), UDFLib.ConvertToInteger(ddlGradingType.SelectedValue), GetSessionUserID()); txtCriteria.Text = ""; txtfilter.Text = ""; Bind_UnAssignedCriteria(); string js = "closeDivAddNewCriteria();"; ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", js, true); }