/// <summary> /// Get question no by section no /// </summary> public void VET_Get_QuestionNoBySectionNo() { try { BLL_VET_Questionnaire objBLLQuest = new BLL_VET_Questionnaire(); DDLQuestion.DataSource = objBLLQuest.VET_Get_QuestionNoBySectionNo(UDFLib.ConvertToInteger(ViewState["Questionnaire_ID"].ToString()), DDLSection.SelectedValues); DDLQuestion.DataTextField = "Question_No"; DDLQuestion.DataValueField = "ID"; DDLQuestion.DataBind(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }
/// <summary> /// Bind Question number by questionnire id /// </summary> public void VET_Get_QuestionNoByQuestionnireId() { try { if (DDLQuestionnaire.SelectedValues.Rows.Count > 0) { BLL_VET_Index objBLLIndx = new BLL_VET_Index(); DataTable dtQuestionNo = objBLLIndx.VET_Get_QuestionNoByQuestionnireId(DDLQuestionnaire.SelectedValues, DDLSection.SelectedValues); DDLQuestion.DataSource = dtQuestionNo; DDLQuestion.DataTextField = "Question_No"; DDLQuestion.DataValueField = "ID"; DDLQuestion.DataBind(); } } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }