protected int Create_Interview_Criteria() { int Ret = 1; string js = ""; if (txtCriteria.Text == "") { js = "alert('Enter Question');"; } else if (ddlCategory.SelectedValue == "0") { js = "alert('Select Category');"; } else if (ddlType.SelectedValue == "0") { js = "alert('Select question type');"; } else if (ddlGradingType.SelectedValue == "0") { js = "alert('Select grading type');"; } if (js == "") { Ret = BLL_Crew_Interview.INSERT_Criteria(txtCriteria.Text.Trim(), txtAnswer.Text.Trim(), UDFLib.ConvertToInteger(ddlType.SelectedValue), UDFLib.ConvertToInteger(ddlCategory.SelectedValue), UDFLib.ConvertToInteger(ddlGradingType.SelectedValue), GetSessionUserID()); if (Ret > 0) { txtCriteria.Text = ""; txtAnswer.Text = ""; js = "alert('Interview criteria added');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", js, true); } } else { Ret = 0; ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", js, true); } return(Ret); }