protected void loadUserData() { String userId = Request.QueryString.GetValues("userId")[0]; userDetails uDObj = BackEndObjects.userDetails.getUserDetailsbyIdDB(userId, Session[SessionFactory.MAIN_BUSINESS_ENTITY_ID_STRING].ToString()); if (uDObj != null && uDObj.getUserId() != null && !uDObj.getUserId().Equals("")) { Label_Name.Text = uDObj.getName(); Label_Email.Text = uDObj.getEmailId(); Label_Contact.Text = uDObj.getContactNo(); } }
protected userDetails populatePersonalData() { userDetails uDObj = BackEndObjects.userDetails. getUserDetailsbyIdDB(User.Identity.Name, Session[SessionFactory.MAIN_BUSINESS_ENTITY_ID_STRING].ToString()); if (uDObj.getName() != null) { TextBox_Name.Text = uDObj.getName(); } if (uDObj.getEmailId() != null) { TextBox_Email.Text = uDObj.getEmailId(); } if (uDObj.getContactNo() != null) { TextBox_Contact.Text = uDObj.getContactNo(); } /*if (uDObj.getDeptId() != null) * TextBox_Dept.Text = uDObj.getDeptId();*/ return(uDObj); }