protected void Page_Load(object sender, EventArgs e) { this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None; if (!IsPostBack) { DropDownList1.Items.Add(new ListItem("--Select--", "0")); Common_GetAllEmployeesBL objGetAllEmployeesBL = new Common_GetAllEmployeesBL(); DropDownList1.DataSource = objGetAllEmployeesBL.Common_GetAllEmployees(Convert.ToInt32(Session["receptionistId"].ToString())); DropDownList1.DataValueField = "ID"; DropDownList1.DataTextField = "EMPLOYEE_NAME"; DropDownList1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None; if (!IsPostBack) { DropDownList1.Items.Add(new ListItem("--Select--", "0")); Common_GetAllEmployeesBL objGetAllEmployeesBL = new Common_GetAllEmployeesBL(); DropDownList1.DataSource = objGetAllEmployeesBL.Common_GetAllEmployees(Convert.ToInt32(Session["receptionistId"].ToString())); DropDownList1.DataValueField = "ID"; DropDownList1.DataTextField = "EMPLOYEE_NAME"; DropDownList1.DataBind(); } }