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 of "username" and "password" and a button "login"
nw i hve to call this function on login button click
i have made object of my class first
protected void Bttnlogn_Click(object sender, EventArgs e)
{
athn.Authenticate(Txt_user.Text, Txt_pwd.Text);
Response.Redirect("ViewInvoices.aspx");
}
please tell me what more should i do because its not validating the password from the db.

New Topic/Question
Reply



MultiQuote





|