protected void Button2_Click(object sender, EventArgs e)
    {
        string transferDate = DateTime.ParseExact(TextBox3.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString();
        string transferTime = TextBox4.Text;
        string reasonForTransfer = TextBox2.Text;
        int transferToDoctorId = Convert.ToInt32(DropDownList2.SelectedValue);
        int transferByDoctorId = Convert.ToInt32(Session["doctorId"].ToString());
        int patientId = Convert.ToInt32(Session["patientId"].ToString());

        Doctor_IPDDoctorTransferBL objDoctor_IPDDoctorTransferBL = new Doctor_IPDDoctorTransferBL();
        Session["transferToDoctorId"] = objDoctor_IPDDoctorTransferBL.Doctor_IPDDoctorTransfer(transferDate, transferTime, reasonForTransfer, transferToDoctorId,
            transferByDoctorId, patientId);
        Label1.Visible = true;
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        string transferDate       = DateTime.ParseExact(TextBox3.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString();
        string transferTime       = TextBox4.Text;
        string reasonForTransfer  = TextBox2.Text;
        int    transferToDoctorId = Convert.ToInt32(DropDownList2.SelectedValue);
        int    transferByDoctorId = Convert.ToInt32(Session["doctorId"].ToString());
        int    patientId          = Convert.ToInt32(Session["patientId"].ToString());

        Doctor_IPDDoctorTransferBL objDoctor_IPDDoctorTransferBL = new Doctor_IPDDoctorTransferBL();

        Session["transferToDoctorId"] = objDoctor_IPDDoctorTransferBL.Doctor_IPDDoctorTransfer(transferDate, transferTime, reasonForTransfer, transferToDoctorId,
                                                                                               transferByDoctorId, patientId);
        Label1.Visible = true;
    }