Пример #1
0
 protected void btnDodaj_Click(object sender, EventArgs e)
 {
     using (PoslovniKlubBL temp = new PoslovniKlubBL())
     {
         if (txtPass.Text == txtConfirmPass.Text)
         {
             if(temp.SaveUser1(txtUsername.Text, txtPass.Text))
                 ResetFields();
             else
                 ClientScript.RegisterStartupScript(this.GetType(), "Greška!", "alert('Ovaj user već postoji!');", true);
         }
         else
             ClientScript.RegisterStartupScript(this.GetType(), "Greška!", "alert('Lozinka nije ista!');", true);
     }
 }