protected void Page_Load(object sender, EventArgs e) { string employerEmail = ""; //UspGetEmployerProfile gep = handler.BLL_GetEmployerProfile1(employerName); //DataSet ds = handler.BLL_GetEmployerProfile1(); txtContactEmail.Enabled = false; txtContactPerson.Enabled = false; txtDescription.Enabled = false; txtEmail.Enabled = false; txtEmployerName.Enabled = false; txtPassword.Enabled = false; txtUsername.Enabled = false; txtVAT.Enabled = false; ddlCity.Enabled = false; ddlCountry.Enabled = false; ddlIndustry.Enabled = false; if (!IsPostBack) { employerEmail = Request.QueryString["employerEmail"]; txtEmail.Text = employerEmail.ToString(); UspGetEmployerProfile gep = handler.BLL_GetEmployerProfile1(txtEmail.Text); try { txtEmployerName.Text = gep.employerName.ToString(); txtContactEmail.Text = gep.contactEmail.ToString(); txtContactPerson.Text = gep.contactPerson.ToString(); txtDescription.Text = gep.employerDescription.ToString(); txtEmail.Text = employerEmail.ToString(); txtEmployerName.Text = gep.employerName.ToString(); txtPassword.Text = gep.employerPassword.ToString(); txtUsername.Text = gep.employerUsername.ToString(); txtVAT.Text = gep.vatNo.ToString(); txtCountry.Text = gep.countryDescription.ToString(); txtCity.Text = gep.cityDescription.ToString(); txtIndustry.Text = gep.industryDescription.ToString(); //Page.ClientScript.RegisterStartupScript(this.GetType(), "Scripts", "<script>alert('You have successfully updated your profile.');</script>" + ex); } catch (Exception ex) { Page.ClientScript.RegisterStartupScript(this.GetType(), "Scripts", "<script>alert('There was a problem with viewing your profile.');</script>" + ex); } } }