Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > HttpContext.Current.User.Identity.Name AND Context.User.Identity.Name;

Reply
Thread Tools

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

 
 
nalbayo
Guest
Posts: n/a
 
      11-11-2005
what's the difference between

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

thanks!



 
Reply With Quote
 
 
 
 
Juan T. Llibre
Guest
Posts: n/a
 
      11-11-2005
None.

One is used when coding inline; the other when coding in code-behind.



Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================
"nalbayo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> what's the difference between
>
> HttpContext.Current.User.Identity.Name;
> and
> Context.User.Identity.Name;
>
> thanks!



 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      11-11-2005
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)



"nalbayo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> what's the difference between
>
> HttpContext.Current.User.Identity.Name;
> and
> Context.User.Identity.Name;
>
> thanks!
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
if and and vs if and,and titi VHDL 4 03-11-2007 05:23 AM



Advertisments