private void BindGridView()
    {
        TeacherMsts msts        = new TeacherMsts();
        TeacherMst  Teacherdata = msts.Details(Convert.ToInt32(Request.QueryString["EID"].ToString()));

        lblName.Text     = Teacherdata.FirstName + " " + Teacherdata.MiddleName + " " + Teacherdata.LastName;
        lblemail.Text    = Teacherdata.EmailID;
        lblGender.Text   = Teacherdata.Gender;
        lblJoinDate.Text = Teacherdata.JoiningDate;
        lblMobile.Text   = Teacherdata.MobileNo;
        empImg.ImageUrl  = "~/TeacherImages/" + Teacherdata.Image;
    }
Esempio n. 2
0
    private void BindControl()
    {
        TeacherMsts msts     = new TeacherMsts();
        TeacherMst  Teachers = msts.Details(Convert.ToInt32(Request.QueryString["EID"].ToString()));

        txtTeachercode.Text     = Teachers.Emp_Code;
        txtfirstname.Text       = Teachers.FirstName;
        txtmiddlename.Text      = Teachers.MiddleName;
        txtlastname.Text        = Teachers.LastName;
        txtDATEBIRTH.Text       = Teachers.DateOfBirth;
        txtjoiningdate.Text     = Teachers.JoiningDate;
        rdlgender.SelectedValue = Teachers.Gender;
        txtemailid.Text         = Teachers.EmailID;
        txtmobilenumber.Text    = Teachers.MobileNo;
        ViewState["Image"]      = Teachers.Image;
    }