Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None;
     if (!IsPostBack)
     {
         GetDoctorAppointmentsByDateBL objGetDoctorAppointmentsByDateBL = new GetDoctorAppointmentsByDateBL();
         ds = objGetDoctorAppointmentsByDateBL.GetDoctorAppointmentsByDate(Request.QueryString["date"].ToString());
         GridView1.DataSource = ds;
         GridView1.DataBind();
         GetDoctorByAppointmentDateBL objGetDoctorByAppointmentDateBL = new GetDoctorByAppointmentDateBL();
         DropDownList1.Items.Add(new ListItem("--Select--", "0"));
         DropDownList1.DataSource     = objGetDoctorByAppointmentDateBL.GetDoctorByAppointmentDate(DateTime.ParseExact((Convert.ToDateTime(Request.QueryString["date"].ToString())).ToString("dd-MM-yyyy"), "dd/MM/yyyy", System.Globalization.CultureInfo.InstalledUICulture).ToString());
         DropDownList1.DataValueField = "ID";
         DropDownList1.DataTextField  = "DOCTOR_NAME";
         DropDownList1.DataBind();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None;
     if (!IsPostBack)
     {
         GetDoctorAppointmentsByDateBL objGetDoctorAppointmentsByDateBL = new GetDoctorAppointmentsByDateBL();
         ds = objGetDoctorAppointmentsByDateBL.GetDoctorAppointmentsByDate(Request.QueryString["date"].ToString());
         GridView1.DataSource = ds;
         GridView1.DataBind();
         GetDoctorByAppointmentDateBL objGetDoctorByAppointmentDateBL = new GetDoctorByAppointmentDateBL();
         DropDownList1.Items.Add(new ListItem("--Select--", "0"));
         DropDownList1.DataSource = objGetDoctorByAppointmentDateBL.GetDoctorByAppointmentDate(DateTime.ParseExact((Convert.ToDateTime(Request.QueryString["date"].ToString())).ToString("dd-MM-yyyy"), "dd/MM/yyyy", System.Globalization.CultureInfo.InstalledUICulture).ToString());
         DropDownList1.DataValueField = "ID";
         DropDownList1.DataTextField = "DOCTOR_NAME";
         DropDownList1.DataBind();
     }
 }