private void GetAppointmentData()
    {
        Doctor_GetAppointmentsByDateBL objDoctor_GetAppointmentsByDateBL = new Doctor_GetAppointmentsByDateBL();

        ds = objDoctor_GetAppointmentsByDateBL.Doctor_GetAppointmentsByDate(Convert.ToInt32(Session["doctorId"].ToString()), Request.QueryString["date"].ToString());
        if (ds.Tables[0].Rows.Count == 0)
        {
            Label1.Visible       = true;
            Panel2.Visible       = false;
            GridView1.DataSource = null;
            GridView1.DataBind();
        }
        else
        {
            Label1.Visible       = false;
            GridView1.DataSource = ds;
            GridView1.DataBind();
        }
    }
 private void GetAppointmentData()
 {
     Doctor_GetAppointmentsByDateBL objDoctor_GetAppointmentsByDateBL = new Doctor_GetAppointmentsByDateBL();
     ds = objDoctor_GetAppointmentsByDateBL.Doctor_GetAppointmentsByDate(Convert.ToInt32(Session["doctorId"].ToString()), Request.QueryString["date"].ToString());
     if(ds.Tables[0].Rows.Count == 0)
     {
         Label1.Visible = true;
         Panel2.Visible = false;
         GridView1.DataSource = null;
         GridView1.DataBind();
     }
     else
     {
         Label1.Visible = false;
         GridView1.DataSource = ds;
         GridView1.DataBind();
     }
 }