httpcontext
Getting environment variable LOGONSERVER in an ASP/MVC application
I know how to get the LOGONSERVER environment variable via this: Environment.GetEnvironmentVariable(\"LOGONSERVER\");[详细]
2023-02-19 12:09 分类:问答.NET Web Forms getting Page object from HttpContext
How is it possible to get a reference of Page from HttpContext object. I have seen type casting like:[详细]
2023-02-16 01:10 分类:问答Can one override HttpContext.Current.Request.Url.AbsoluteUri?
We have a system that logs events that occur on our website in a table. It currently records all the events with 开发者_开发百科a description of what is going on, and a reference of the page\'s prope[详细]
2023-02-15 20:45 分类:问答HttpContext in MVC Attributes - threading issues?
I had my NHibernate session management setup like follows: protected MvcApplication() { BeginRequest += delegate[详细]
2023-02-15 18:46 分类:问答Access the current session variable from another controller
I called a method from another controller using this AnotherController oriCon = new AnotherController();[详细]
2023-02-13 22:15 分类:问答Output a GridView to Excel outside of page
I want to have a helper class that can serve requests from multiple pages to output contents of any gridview to excel. But if I pass in the GridView it throws an error that it must be inside \"form ru[详细]
2023-02-13 02:44 分类:问答Storing context object in Request object, is it disposed of?
I am writing a MVC3 application, using NInject DI and repository pattern. Ninject is set up so that the repositories have a per-request lifetime.[详细]
2023-02-13 01:26 分类:问答Saving the username in MVC2 + EF4
I am working on a simple MVC2 project with EF4. I am also using Repository pattern which is instantiated in the controller\'s constructor. I have 34 tables each with CreatedBy and LastModifiedBy field[详细]
2023-02-12 14:36 分类:问答HttpContext.Current.Items is too fast to access item, but How?
I wrote simple test add 100 items to [Collection] read 1000000 times from [Collection] randomly When [Collection]==HttpContext.Current.Items it takes 50 ms[详细]
2023-02-11 23:26 分类:问答Per-Request static data in ASP.NET
I\'m wanting to cache the roles a user is in for each request that comes in. There are several places throughout any given page where where we have something like:[详细]
2023-02-10 02:27 分类:问答