Exemplo n.º 1
0
        protected void btnRegister_OnClick(object sender, EventArgs e)
        {
            DateTime CurrentDate = DateTime.Now;
            string   username    = "******";
            string   name        = tbName.Text;
            string   password    = tbPass.Text;
            string   email       = tbEmail.Text;
            string   conPass     = tbconPass.Text;

            if (password == conPass)
            {
                Account.InsertAccount(username, name, email, password, "User");
                //Email.SendRegister(tbEmail.ToString(), emailBody);

                Response.Redirect("~/Web/Sign_In.aspx");
            }
            else
            {
                Response.Write("<script>alert('Password Does Not Match.')</script>");
            }
        }