void GetYear() { List <ATTFixedHoliday> LSTYear = BLLFixedHoliday.GetYear(); LSTYear.Insert(0, new ATTFixedHoliday("छान्नुहोस्", "", "", "", "", "", "", "", "")); this.ddlYear2.DataSource = LSTYear; this.ddlYear2.DataTextField = "Year"; this.ddlYear2.DataValueField = "Year"; this.ddlYear2.DataBind(); }
void LoadYear() { try { List <ATTFixedHoliday> LSTYear = BLLFixedHoliday.GetYear(); LSTYear.Insert(0, new ATTFixedHoliday("--साल छान्नुस्--", "", "", "", "", "", "", "", "")); this.DDLYear.DataSource = LSTYear; this.DDLYear.DataTextField = "Year"; this.DDLYear.DataValueField = "Year"; this.DDLYear.DataBind(); } catch (Exception ex) { lblStatusMessage.Text = ex.Message; programmaticModalPopup.Show(); } }