Exemple #1
0
 protected void Button1_click(object sender, EventArgs e)
 {
     d.Open();
     if (d.Login(this.inlognaam.Text, this.wachtwoord.Text))
     {
         Session["gebruiker"] = inlognaam.Text;
         FormsAuthentication.RedirectFromLoginPage(inlognaam.Text, Persist.Checked);
     }
     else
     {
         this.Page.ClientScript.RegisterStartupScript(this.GetType(), "ex", "alert('Gegevens komen niet overeen.');", true);
     }
 }