Exception handling

G

Guest

hey all,
i have some error handling code in my global.asax:

void Application_Error(object sender, EventArgs e)

Is there anyway to acquire the UserID in the global?

thanks,
rodchar
 
M

Mark Rae

i have some error handling code in my global.asax:

void Application_Error(object sender, EventArgs e)

Is there anyway to acquire the UserID in the global?

What UserID are you talking about...?
 
M

Mark Rae

I'm sorry the user name. Usually i can get this by saying
User.Identity.Username.

Oh right...

I've just tried it in the Global.asax of an app which uses Integrated
Windows Authentication, and it worked fine...

However, the actual property is Name, not Username - is that your
problem...?
 
G

Guest

I might be missing the namespace?


Mark Rae said:
Oh right...

I've just tried it in the Global.asax of an app which uses Integrated
Windows Authentication, and it worked fine...

However, the actual property is Name, not Username - is that your
problem...?
 

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

Top