Ejemplo n.º 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            Users user = bll.Sel(TextBox1.Text, TextBox2.Text).FirstOrDefault(u => u.UsersAccount == TextBox1.Text);


            if (user != null && user.UsersPassword == TextBox2.Text)
            {
                Response.Write("<script>alert('s')</script>");
            }
            else
            {
                Response.Write("<script>alert('!!!')</script>");
                return;
            }
        }