Author: dlmmartin | Posted on: 6/30/2010 8:23:33 AM | Views : 1079

 This may be very simple but I can not figure it out. I am using ASP.Net 4.0/Visual Studio 2010. However, I think it would be the same if it was ASP.Net/VB.Net 3.5. I am inserting three form filed values into a database table. I have placed a LoginName Control on the page and the login name is properly displaying. I am using forms Authentication and it is set up properly in the web config file. I simply want to insert the logged in username value into the database table so I can track who created the records. I am happy to be able to insert the UnserName or the UserID value. I assume both of the values are derived out of the aspnet_Users table. Being able to insert either one would be fine but I believe UserID would be better because it will always be unique. Hopefully someone can provide a way to do either. I am not a coder so giving me a quick try this answer won't help me much. I would need to really see the entire solution and code.
 
PLEASE HELP!!! ...

Go to the complete details ...