protected void Page_Load(object sender, EventArgs e) { this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None; if (!IsPostBack) { Common_GetAllDoctorsBL objGetAllDoctorsBL = new Common_GetAllDoctorsBL(); DropDownList1.DataSource = objGetAllDoctorsBL.Common_GetAllDoctors(); DropDownList1.DataValueField = "ID"; DropDownList1.DataTextField = "DOCTOR_NAME"; DropDownList1.Items.Add(new ListItem("All", "0")); DropDownList1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None; if (!IsPostBack) { Common_GetAllDoctorsBL objGetAllDoctorsBL = new Common_GetAllDoctorsBL(); DropDownList1.DataSource = objGetAllDoctorsBL.Common_GetAllDoctors(); DropDownList1.DataValueField = "ID"; DropDownList1.DataTextField = "DOCTOR_NAME"; DropDownList1.Items.Add(new ListItem("All", "0")); DropDownList1.DataBind(); } }