protected void Page_Load(object sender, EventArgs e) { LoginModule myLoginModule = new LoginModule(); myLoginModule.checkLoginStatus(); myLoginModule.checkPermission(1); WelcomeLabel.Text = myLoginModule.getFirstName((String)Session["userID"]); if (!IsPostBack) { try { Employer myEmployer = new Employer(); //LoginModule myLoginModule = new LoginModule(); String[] stringArray = myEmployer.getInfoToForm((String)Session["userID"]); fName.Text = stringArray[0]; mName.Text = stringArray[1]; lName.Text = stringArray[2]; company.Text = stringArray[4]; personalPhone.Text = stringArray[9]; personalEmail.Text = stringArray[3]; companyPhone.Text = stringArray[10]; companyEmail.Text = stringArray[8]; number.Text = stringArray[5]; street.Text = stringArray[6]; town.Text = stringArray[7]; } catch (Exception ex) { Page.ClientScript.RegisterStartupScript(Page.GetType(), "showAlert", "showAlert();", true); } } }