N nalbayo Nov 11, 2005 #1 what's the difference between HttpContext.Current.User.Identity.Name; and Context.User.Identity.Name; thanks!
what's the difference between HttpContext.Current.User.Identity.Name; and Context.User.Identity.Name; thanks!
J Juan T. Llibre Nov 11, 2005 #2 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/ ======================================
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/ ======================================
B Bruce Barker Nov 11, 2005 #3 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)
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)