protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack == false) {
            if (Request["id"] != null) {
                ErmTsPersonalInfoPara p = new ErmTsPersonalInfoPara();
                RegisterENG eng = new RegisterENG();
                p = eng.GetRegisterInfo(Convert.ToInt64(Request["id"]));
                eng=null;

                if (p.ID>0){
                    if (p.MIDDLE_NAME.Trim() != "")
                        lblName.Text = p.FIRST_NAME + " " + p.MIDDLE_NAME + " " + p.LAST_NAME;
                    else
                        lblName.Text = p.FIRST_NAME + " " + p.LAST_NAME;

                    lblID.Text = "*" + p.ID.ToString().PadLeft(4, '0') + "*";
                    lblName2.Text = p.FIRST_NAME + " " + p.LAST_NAME;
                    lblPosition.Text =p.POSITION_NAME;
                    lblDivision.Text =p.DIVISION;
                    lblCompany.Text =p.COMPANY_NAME;
                    lblProvince.Text = p.CITY;
                    lblMobileNumber.Text = p.MOBILE_NO;
                }
                p = null;
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack == false) {
            if (Request["id"] != null) {
                ErmTsPersonalInfoPara p = new ErmTsPersonalInfoPara();
                RegisterENG eng = new RegisterENG();
                p = eng.GetRegisterInfo(Convert.ToInt64(Request["id"]));
                eng=null;

                if (p.ID>0){
                    if (p.MIDDLE_NAME.Trim() != "")
                        lblName.Text = p.FIRST_NAME + " " + p.MIDDLE_NAME + " " + p.LAST_NAME;
                    else
                        lblName.Text = p.FIRST_NAME + " " + p.LAST_NAME;

                    lblID.Text = p.ID.ToString().PadLeft(6, '0');
                }
                p = null;
            }
        }
    }