User.Identity.Name as an update parameter
Posted on 2011-02-24
I am hoping to add the windows username (User.Identity.Name) to the update string for a gridview - as a way of keeping track of which user has last edited the data. Additionally I would like to add a timestamp. The fields exist in my database, I am just not clear on how or where in Visual Web Developer I say something like "User.Identity.Name = @username"
(ie can I refer to code variables within my ASP page ... ? I have no idea).
I am sure there is an efficient way to do this and would appreciate your thoughts.
My code behind pages are in VB
Thank you in Advance
From a newbie.