Example #1
0
 protected void ChangeEmail_Click(object sender, EventArgs e)
 {
     if (currentUser.ValidateEmail(txtChangeEmail.Text))
     {
         currentUser.Email = txtChangeEmail.Text;
         Response.Redirect(Request.RawUrl);
     }
     else
     {
         Response.Write("<script>alert('Invalid e-mail address format.');</script>");
     }
 }