I have pages in folders that require users to be logged in. I am using asp forms security and the login window that is in visual studio. So, the user navigates to the page, is redirected to the login, does that and is returned to the page. There must be a cookie set in there somewhere. I added the aspnet tables to an existing database, so they handle the userid and password, but I already have a USERS table that includes the user name, birth date and other info and a primary key that is the usernumber that is used to JOIN to other tables. That is all working OK. But when I get to the data entry pages - user logged in, I need to know the user id from the USERS table. I get this by getting the aspnet userid
string strID = Membership.GetUser(strNetUser).ProviderUserKey.ToString();
and then ...
Go to the complete details ...