protected int Create_Interview() { int Ret = 1; string js = ""; int RankID = UDFLib.ConvertToInteger(ddlRank.SelectedValue); string InterviewType = ddlInterviewType.SelectedValue; if (txtInterview_Name.Text == "") { Ret = 0; js = "alert('Enter Interview Questionnaire Name.');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", js, true); } else if (RankID == 0) { Ret = 0; js = "alert('Select Rank Name.');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", js, true); } else if (InterviewType.Equals("0")) { Ret = 0; js = "alert('Select Interview Type.');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", js, true); } else { Ret = 1; int CopyFrom = UDFLib.ConvertToInteger(ddlInterviewNames.SelectedValue); int IQID = BLL_Crew_Interview.INS_Interview(txtInterview_Name.Text.Trim(), RankID, CopyFrom, GetSessionUserID(), InterviewType); if (IQID > 0) { if (InterviewType == "Interview") { js = "alert('Interview Created.');"; } else { js = "alert('Briefing Created.');"; } ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", js, true); Bind_Interviews(); } } return(Ret); }