Exemple #1
0
        protected void Page_Init(object sender, EventArgs e)
        {
            DoctorClass ac = new DoctorClass();

            if (Session["EditDrId"] == null)
            {
                Server.Transfer("AdminViewDoctor.aspx");
            }

            d           = ac.getDoctor(Int32.Parse(Session["EditDrId"].ToString()));
            ErrorL.Text = Session["EditDrId"].ToString();
            //Set PresentValues
            //Copy paste from DoctorEditProfile
            if (!this.IsPostBack)
            {
                dob.Text           = d.dob.ToString("dd-MM-yyyy");
                Salary.Text        = d.salary.ToString();
                first_name_tb.Text = d.name;
                Email_tb.Text      = d.email;
                phoneno_tb.Text    = d.phoneno;
                Address_tb.Text    = d.address;
                Field.Text         = d.field;
                Qualification.Text = d.qualification;
            }
        }
 protected void Page_Init(object sender, EventArgs e)
 {
     d = doc.getDoctor(Int32.Parse(Session["doctorId"].ToString()));
     //Set PresentValues
     Email_tb.Text   = d.email;
     phoneno_tb.Text = d.phoneno;
     Address_tb.Text = d.address;
 }