G
Guest
Hey guys,
I'm working on a project that has forms authentication implemented with Access 2003. I'm trying to write a page that will allow users to change their password. So far, without success. Here's a look at part of what I have..
if(txtuname == (string)Session["ucode"] && txtoldpass == (string)Session["pword"] && txtoldpassconf == (string)Session["pword"])
{
OleDbConnection Conn2 = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\PATH\\users.mdb");
Conn2.Open();
string writepass = "UPDATE tblUsers SET password='" + txtnewpass + "' WHERE username='" + txtuname + "'";
OleDbCommand Cmd = new OleDbCommand(writepass, Conn2);
Conn2.Close();
}
else
Response.Write("Incorrect credentials supplied");
Any help would be much appreciated..Thank you!
I'm working on a project that has forms authentication implemented with Access 2003. I'm trying to write a page that will allow users to change their password. So far, without success. Here's a look at part of what I have..
if(txtuname == (string)Session["ucode"] && txtoldpass == (string)Session["pword"] && txtoldpassconf == (string)Session["pword"])
{
OleDbConnection Conn2 = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\PATH\\users.mdb");
Conn2.Open();
string writepass = "UPDATE tblUsers SET password='" + txtnewpass + "' WHERE username='" + txtuname + "'";
OleDbCommand Cmd = new OleDbCommand(writepass, Conn2);
Conn2.Close();
}
else
Response.Write("Incorrect credentials supplied");
Any help would be much appreciated..Thank you!