HttpContext.Current.User.Identity.Name AND Context.User.Identity.Name;

N

nalbayo

what's the difference between

HttpContext.Current.User.Identity.Name;
and
Context.User.Identity.Name;

thanks!
 
B

Bruce Barker

HttpContext.Current is a static method that return the current http context

Context is an instance method defined in the page class that returns the
current http context (it really just calls the above function).

-- bruce (sqlwork.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

Top