Example #1
0
 void LoadMeetingType()
 {
     try
     {
         Session["MeetingTypeLst"]          = BLLMeetingType.GetMeetingTypeList();
         this.lstMeetingType.DataSource     = Session["MeetingTypeLst"];
         this.lstMeetingType.DataTextField  = "MeetingTypeName";
         this.lstMeetingType.DataValueField = "MeetingTypeID";
         this.lstMeetingType.DataBind();
     }
     catch (Exception ex)
     {
         this.lblStatusMessage.Text = ex.Message;
         this.programmaticModalPopup.Show();
     }
 }
Example #2
0
 void LoadMeetingType()
 {
     try
     {
         List <ATTMeetingType> lst = BLLMeetingType.GetMeetingTypeList();
         if (lst.Count > 0)
         {
             lst.Insert(0, new ATTMeetingType(0, "---- छान्नुहोस् ----", ""));
         }
         this.ddlMeetingType.DataSource     = lst;
         this.ddlMeetingType.DataTextField  = "MeetingTypeName";
         this.ddlMeetingType.DataValueField = "MeetingTypeID";
         this.ddlMeetingType.DataBind();
     }
     catch (Exception ex)
     {
         this.lblStatusMessage.Text = ex.Message;
         this.programmaticModalPopup.Show();
     }
 }