how to get current user id

  • Thread starter Thread starter ibiza
  • Start date Start date
I

ibiza

Hi,

I have an application from which a user creates a "model". When it is
time to save it in the DB, I need to know who created it (I have a
field 'model_iduser' in my table).

Before using asp.net 2.0 membership system, I had no problems getting
the user id and saving it. Now, with all this complicated membership
provider stuff, I'm stucked on how to get the user's id...anybody can
help me with this one?

Thanks a lot!

ibiza
 
Its in the aspnet_Users table. The hardest part is that the id is
represented as a GUID which makes reading and referencing confusing at
design-time.
Its often easier however to store data in the Profile which enables us to
use our own terminology and type.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
 

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

Similar Threads


Back
Top