Esempio n. 1
0
        protected void Logare(object sender, EventArgs e)
        {

            bus = new BussinesLayer();
            if (bus.LogareLaBazaDeDate(UserName.Text, Password.Text, userValidation, passwordValidation) == 1)
            {
                Response.Redirect("Administrator.aspx");
            }
            else if (bus.LogareLaBazaDeDate(UserName.Text, Password.Text, userValidation, passwordValidation) == 2)
            {
                logat = true;
                Label1.Visible = false;
                Label2.Visible = false;
                Password.Visible = false;

                UserName.Visible = false;
                userValidation.Visible = false;
                passwordValidation.Visible = false;
                Button2.Visible = false;
                MesajLogare.Visible = false;

            }


        }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     bus = new BussinesLayer();
     bus.afisareSportivi(GridView1, GridView2);
     UserName.Attributes.Add("onclick", "setUserNameToNothing()");
 }