protected void Page_Load(object sender, EventArgs e) { signUp = new SignUpController(); userControl = new UserCtrl(); if (IsPostBack) { ResultLabel.Visible = true; } if (!IsPostBack) { EditProfileTitle.Visible = false; //if (Session["name"]!= null) if (Page.PreviousPage == null && Session["name"]!= null) { //Manage title and button visibility for Edit Profile EditProfileBtn.Visible = true; SignUpBtn.Visible = false; BackButton.Visible = true; SignUpTitle.Visible = false; EditProfileTitle.Visible = true; ResultLabel.Visible = false; email.ReadOnly = true; confEmail.ReadOnly = true; string emailString = Session["name"].ToString(); u = userControl.getProfileInfo(emailString); email.Text = u.Email; confEmail.Text = u.Email; firstName.Text = u.FirstName; lastName.Text = u.LastName; address.Text = u.Address; city.Text = u.City; DropDownList1.SelectedValue = u.State; zipCode.Text = u.Zip.ToString(); //Phone.Text = u.Phone; MobilePhone.Text = u.Phone; checkToText.Checked = u.Text; } } ServiceReference1.SUSMSClient isuService = new ServiceReference1.SUSMSClient(); string[] carriers = isuService.getCarriers(); if (carriers.Length > 0 && CarrierList.Items.Count <= 1) { foreach (string carrier in carriers) { CarrierList.Items.Add(new ListItem(carrier, carrier)); } } }
protected void Page_Load(object sender, EventArgs e) { signUp = new SignUpController(); }