Exemplo n.º 1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     AirTicketWeb.BLL.Admin bll = new AirTicketWeb.BLL.Admin();
     if (bll.AdminLogin(txtName.Value, txtPwd.Value))
     {
         Session["Usernasme"] = txtName.Value;
         Response.Redirect("Default.aspx");
     }
     else
     {
         Response.Redirect("Login.aspx");
     }
 }