public DataSet Authenticate(string UserName, string Password)
{
DataSet ds = db.ExecuteDataSet("spAuthenticate", new object[] { UserName.ToLower().Trim(),EncryptText( Password)});
return ds;
}
i have taken two textboxes "username" and "password" and one button"login"
on the login button click i used this code but this is not helping as its some how nt validating the password from the database
protected void Bttnlogn_Click(object sender, EventArgs e)
{
athn.Authenticate(Txt_user.Text, Txt_pwd.Text);
Response.Redirect("ViewInvoices.aspx");
}
what should be done more so that it validates the username and password from the database.

New Topic/Question
This topic is locked



MultiQuote







|