I have a login page linked to a login db table with 3 columns namely ID
, Pass
and AccessTime
. Whenever the login ID is successful, I need to update the respective record with the date and time of access.
UPDATE Login SET AccessTime = '"+DateTime.Now+"' WHERE ID = '" + id + "' ;"
And, retrieve the ID
and the AccessTime
in another page in a textbox.
I've used sessions for the retrieval process.
Now, how do I implement this on C# ASP.NET? I'm a newbie...