/// <summary> /// Last step button event handler /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSignup_OnClick(object sender, EventArgs e) { if (txtEmail.Text != "" && txtName.Text != "" && txtPassword.Text != "") { if (MailValidator.EmailIsValid(txtEmail.Text)) { if (!_myFunction.CheckUserExist(txtName.Text.ToLower().Trim())) { _myFunction.AddSignIn(txtName.Text.ToLower().Trim(), txtEmail.Text.ToLower().Trim(), ImageUpload().Item1, ImageUpload().Item2, _ghgNumber); if (Glitch.GlichEnabler) { _step = 0; txtEmail.Text = ""; txtName.Text = ""; txtPassword.Text = ""; txtPassword.Attributes["value"] = ""; Response.Redirect("~/StaticNoise.aspx"); } if (!Glitch.GlichEnabler) { _step = 0; txtEmail.Text = ""; txtName.Text = ""; txtPassword.Text = ""; txtPassword.Attributes["value"] = ""; Response.Redirect("Default.aspx"); Label5.Text = "Thank you for supporting Arcadia. We will contact you soon with further info"; } } else { Label5.Text = "Sorry that name has already signed up"; } } else { Label5.Text = "Insert a valid mail"; } } else { Label5.Text = "Incorrect info, please enter info in all the fields"; } }