예제 #1
0
    protected void btnLogin_Click(object sender, EventArgs e)
    {
        var userName = txtUserName.Text;
        var passWord = txtPassword.Text;
        var userId   = Convert.ToInt32(AdoFunc.GetDataCell("select count(UserId) from Users where UserName='******' and Password="******"UserId"] = userId;
            Response.Redirect("/");
        }
        else
        {
            lblInfo.Text    = "Kullanıcı adı yada şifre yanlış";
            lblInfo.Visible = true;
        }
    }