Beispiel #1
0
 protected void btnLogin_Click(object sender, EventArgs e)
 {
     ob1.Uname = txtAdmin.Text;
     ob1.Upwd  = txtpswd.Text;
     dt        = sba1.LoginPage(ob1);
     if (dt.Rows.Count == 1)
     {
         Response.Write("<script>alert(Login Success);</script>");
         lblMsg.Text = "Login success";
     }
     else
     {
         Response.Write("<script>alert(Login failed);</script>");
         lblMsg.Text = "Login failed";
     }
 }