Why is HttpContext.Current null?
I have a value that I use in all the application; I set this in application_start
I have a value that I use in all the application; I set this in application_start
I am reading an article about HttpContext and CallContext and see thread-agility.
What does it mean?
What is the difference between System.Web.HttpContext.Current.User.Identity.Name and System.Environment.UserName in the context of a ASP.Net Web Application Project?
This is actually a two part question. First,does the HttpContext.Current correspond to the current System.UI.Page object?
Hi I use a custom MembershipProvider.
I spawn a thread on Application_Start and would like to log exceptions. There is no Context/HttpContext/HttpContext.Current, so how might I get it to log?
I am using ASP.NET. I either add or set a cookie (depending on whether the HttpRequest contains a cookie with specified key), and immediately afterward call Response.Redirect. The cookie is not set. Is this correct behavior? Is there something mutually exclusive about setting a cookie during an http response with a 302 status code?
This is not necessarily an issue, I am just curious as to how it works. I have a method:
What is the difference between these 2 piece of codes.