How to access memberid directly

Joined
Mar 14, 2007
Messages
2
Reaction score
0
I have a simple problem, but looks like I am having a hard time finding an answer. After the user logs in, I want to show the user if they have paid their yearly subscription or not. I keep the info in a database, so I am simply making a query looking for paid or unpaid. If paid, I would like to execute some part of code. If not paid, I would like to execute a different set of code.

My problem is to find the memberid. How would I grab the memberid (or even userid in this case) from the default page which will have the log in? The user logs in, and it says "welcome back Mr. x." That is when I would like to display messages based on their input.

Any type of help will be appreciated. Thanks.
 
Joined
Mar 14, 2007
Messages
2
Reaction score
0
More info

I forgot to add that I am using ASP.NET 2.0 and I am using the built in create user and profile control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top