protected void AdditionalInfoButton_Click(object sender, EventArgs e) { Employer myEmployer = new Employer(); myEmployer.setUserID((String)Session["userID"]); myEmployer.setStrings(fName.Text, mName.Text, lName.Text, personalPhone.Text, personalEmail.Text, company.Text, number.Text, street.Text, town.Text, companyPhone.Text, companyEmail.Text); TextBox1.Text = myEmployer.addInfo(); Response.Redirect("ManagerHomePage.aspx"); }
protected void SubmitButton_Click(object sender, EventArgs e) { try { //DateTime dt = (Calendar1.SelectedDate); //String format = "yyyy-MM-dd"; // String dob = dt.ToString(format); Employer myEmployer = new Employer(); ; myEmployer.setStrings(fName.Text, mName.Text, lName.Text, personalPhone.Text, personalEmail.Text, companyPhone.Text, number.Text, street.Text, town.Text, company.Text, companyEmail.Text); //myCVModule.setUsername(fName.Text); myEmployer.setUserID((String)Session["userID"]); TextBox1.Text = myEmployer.UpdateInfo(); if (TextBox1.Text.Equals("Non-returning query Successfully executed.Non-returning query Successfully executed.Non-returning query Successfully executed.")) { Response.Redirect("ManagerHomePage.aspx"); } } catch (Exception ex) { Page.ClientScript.RegisterStartupScript(Page.GetType(), "showAlert", "showAlert();", true); } }