protected void Button1_Click(object sender, EventArgs e)
    {
        int    filterType   = Convert.ToInt32(RadioButtonList1.SelectedValue);
        string reminderDate = DateTime.ParseExact(TextBox1.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString();
        string empType      = Session["empType"].ToString();
        int    empId        = -1;

        if (empType == "Receptionist")
        {
            empId = Convert.ToInt32(Session["receptionistId"].ToString());
        }
        else if (empType == "Doctor")
        {
            empId = Convert.ToInt32(Session["doctorId"].ToString());
        }
        switch (filterType)
        {
        case 1:
            Common_FilterRemindersByOnDateBL objFilterRemindersByOnDateBL = new Common_FilterRemindersByOnDateBL();
            ds2 = objFilterRemindersByOnDateBL.Common_FilterRemindersByOnDate(reminderDate, empId);
            GridView2.DataSource = ds2;
            GridView2.DataBind();
            MultiView1.ActiveViewIndex = 1;
            break;

        case 2:
            Common_FilterRemindersByBeforeDateBL objFilterRemindersByBeforeDateBL = new Common_FilterRemindersByBeforeDateBL();
            ds3 = objFilterRemindersByBeforeDateBL.Common_FilterRemindersByBeforeDate(reminderDate, empId);
            GridView3.DataSource = ds3;
            GridView3.DataBind();
            MultiView1.ActiveViewIndex = 2;
            break;

        case 3:
            Common_FilterRemindersByAfterDateBL objFilterRemindersByAfterDateBL = new Common_FilterRemindersByAfterDateBL();
            ds4 = objFilterRemindersByAfterDateBL.Common_FilterRemindersByAfterDate(reminderDate, empId);
            GridView4.DataSource = ds4;
            GridView4.DataBind();
            MultiView1.ActiveViewIndex = 3;
            break;

        case 4:
            Common_GetAllRemindersBL objGetAllRemindersBL = new Common_GetAllRemindersBL();
            ds1 = objGetAllRemindersBL.Common_GetAllReminders(Convert.ToInt32(Session["empId"].ToString()));
            GridView1.DataSource = ds1;
            GridView1.DataBind();
            MultiView1.ActiveViewIndex = 0;
            break;
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        int filterType = Convert.ToInt32(RadioButtonList1.SelectedValue);
        string reminderDate = DateTime.ParseExact(TextBox1.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString();
        string empType = Session["empType"].ToString();
        int empId=-1;
        if(empType=="Receptionist")
            empId = Convert.ToInt32(Session["receptionistId"].ToString());
        else if(empType == "Doctor")
            empId = Convert.ToInt32(Session["doctorId"].ToString());
        switch (filterType)
        {
            case 1:
                Common_FilterRemindersByOnDateBL objFilterRemindersByOnDateBL = new Common_FilterRemindersByOnDateBL();
                ds2 = objFilterRemindersByOnDateBL.Common_FilterRemindersByOnDate(reminderDate, empId);
                GridView2.DataSource = ds2;
                GridView2.DataBind();
                MultiView1.ActiveViewIndex = 1;
                break;

            case 2:
                Common_FilterRemindersByBeforeDateBL objFilterRemindersByBeforeDateBL = new Common_FilterRemindersByBeforeDateBL();
                ds3 = objFilterRemindersByBeforeDateBL.Common_FilterRemindersByBeforeDate(reminderDate, empId);
                GridView3.DataSource = ds3;
                GridView3.DataBind();
                MultiView1.ActiveViewIndex = 2;
                break;

            case 3:
                Common_FilterRemindersByAfterDateBL objFilterRemindersByAfterDateBL = new Common_FilterRemindersByAfterDateBL();
                ds4 = objFilterRemindersByAfterDateBL.Common_FilterRemindersByAfterDate(reminderDate, empId);
                GridView4.DataSource = ds4;
                GridView4.DataBind();
                MultiView1.ActiveViewIndex = 3;
                break;

            case 4:
                Common_GetAllRemindersBL objGetAllRemindersBL = new Common_GetAllRemindersBL();
                ds1 = objGetAllRemindersBL.Common_GetAllReminders(Convert.ToInt32(Session["empId"].ToString()));
                GridView1.DataSource = ds1;
                GridView1.DataBind();
                MultiView1.ActiveViewIndex = 0;
                break;
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.UnobtrusiveValidationMode = UnobtrusiveValidationMode.None;
     if (!IsPostBack)
     {
         MultiView1.ActiveViewIndex = 0;
         Common_GetAllRemindersBL objGetAllRemindersBL = new Common_GetAllRemindersBL();
         string empType = Session["empType"].ToString();
         if (empType == "Receptionist")
         {
             ds1 = objGetAllRemindersBL.Common_GetAllReminders(Convert.ToInt32(Session["receptionistId"].ToString()));
         }
         else if (empType == "Doctor")
         {
             ds1 = objGetAllRemindersBL.Common_GetAllReminders(Convert.ToInt32(Session["doctorId"].ToString()));
         }
         GridView1.DataSource = ds1;
         GridView1.DataBind();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.UnobtrusiveValidationMode = UnobtrusiveValidationMode.None;
     if (!IsPostBack)
     {
         MultiView1.ActiveViewIndex = 0;
         Common_GetAllRemindersBL objGetAllRemindersBL = new Common_GetAllRemindersBL();
         string empType = Session["empType"].ToString();
         if(empType=="Receptionist")
             ds1 = objGetAllRemindersBL.Common_GetAllReminders(Convert.ToInt32(Session["receptionistId"].ToString()));
         else if(empType=="Doctor")
             ds1 = objGetAllRemindersBL.Common_GetAllReminders(Convert.ToInt32(Session["doctorId"].ToString()));
         GridView1.DataSource = ds1;
         GridView1.DataBind();
     }
 }