Ejemplo n.º 1
0
 /// <summary>
 /// Bind section number by questionnire id
 /// </summary>
 public void VET_Get_SectionByQuestionnireId()
 {
     try
     {
         if (DDLQuestionnaire.SelectedValues.Rows.Count > 0)
         {
             BLL_VET_Index objBLLIndx  = new BLL_VET_Index();
             DataTable     dtSectionNo = objBLLIndx.VET_Get_SectionByQuestionnireId(DDLQuestionnaire.SelectedValues);
             DDLSection.DataSource     = dtSectionNo;
             DDLSection.DataTextField  = "Section_No";
             DDLSection.DataValueField = "Section_No";
             DDLSection.DataBind();
         }
     }
     catch (Exception ex)
     {
         UDFLib.WriteExceptionLog(ex);
         string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
         ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
     }
 }