void LoadSewa() { List <ATTSewa> LSTSewa = BLLSewa.GetSewaList(null); LSTSewa.Insert(0, new ATTSewa(0, "----सेवा छान्नुहोस्----", "", DateTime.MinValue, "")); Session["Sewa"] = LSTSewa; ddlSewa.DataSource = LSTSewa; ddlSewa.DataTextField = "SewaName"; ddlSewa.DataValueField = "SewaID"; ddlSewa.DataBind(); }
void LoadSewa() { List <ATTSewa> SewaList = BLLSewa.GetSewaList(null); Session["SewaList"] = SewaList; SewaList.Insert(0, new ATTSewa(0, "छान्नुहोस", "", DateTime.Now, "")); this.ddlSewa_Rqd.DataSource = SewaList; this.ddlSewa_Rqd.DataTextField = "SEWANAME"; this.ddlSewa_Rqd.DataValueField = "SEWAID"; this.ddlSewa_Rqd.DataBind(); }
void LoadSewaList() { try { Session["sewa_list"] = BLLSewa.GetSewaList(null); this.lstSewa.DataSource = Session["sewa_list"]; this.lstSewa.DataTextField = "SewaName"; this.lstSewa.DataValueField = "SewaID"; this.lstSewa.DataBind(); } catch (Exception ex) { this.lblStatus.Text = ex.Message; } }
void LoadSewa() { try { List <ATTSewa> SewaList = BLLSewa.GetSewaList(null); Session["SewaList"] = SewaList; SewaList.Insert(0, new ATTSewa(0, "छान्नुहोस", "", DateTime.Now, "")); this.ddlSewa.DataSource = SewaList; this.ddlSewa.DataTextField = "SEWANAME"; this.ddlSewa.DataValueField = "SEWAID"; this.ddlSewa.DataBind(); } catch (Exception ex) { this.lblStatusMessage.Text = ex.Message; this.programmaticModalPopup.Show(); } }