Author: Rameezwaheed | Posted on: 3/3/2009 9:38:19 PM | Views : 238

Hi all,

I have to given Password update facility to user and i stored Password as key using one way hashing function. iam using following code but it is not working can u guide me where iam doing wrong.

  protected void ValidatePassword(object source, System.Web.UI.WebControls.ServerValidateEventArgs args)
{
string sqlCmd =
"SELECT Password FROM User_Profile WHERE Password = " +
Util.Quote(Password.Value.Trim());

OdbcCommand command = new OdbcCommand(sqlCmd, con);
OdbcDataReader reader = command.ExecuteReader();
if (reader.Read())
{
string storedHashedPassword = (string)reader["Password ...

Go to the complete details ...