示例#1
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     currentUser = Usuario.Current;
     if (currentUser == null)
         Response.Redirect("~/Seguridad/Login.aspx?status=1");
 }
示例#2
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     Usuario u = new Usuario();
     if (u.Login(txt_correo.Text, txt_pass.Text))
     {
         Response.Redirect("../Inicio/Home.aspx");
     }
     else
     {
         Response.Redirect("Login.aspx?status=2");
     }
 }