httpcontext
How to get the QueryString from an ashx file?
There is an ashx file containing \"ProcessRequest(Http开发者_JAVA技巧Context context)\" method which gets triggered automatically. When and how does it get fired?[详细]
2023-01-23 01:35 分类:问答How to access ASP.Net Session object outside the web project (class library)
I am implementing a custom membership and role providers where I need to store all the role/membership information in the user\'s sess开发者_如何学编程ion.[详细]
2023-01-22 08:11 分类:问答Unit Testing Web Services - HttpContext
I want to write unit tests for a web service. I create my test project, reference my web project (not service reference, assembly reference), then write some code to te开发者_如何学运维st the web serv[详细]
2023-01-22 06:32 分类:问答What is the difference between HttpContext.Current.Application.Get([some enum]) and just enum?
I have: HttpContext.Current.Application.Get(KeyNames.EncodedKey).ToString() Where KeyNames is an enum. I can\'t use HttpContext. What should I check before I just use KeyNames.EncodedKey instead o[详细]
2023-01-20 12:19 分类:问答Problem with TempData and Faked HttpContext using ASP.NET MVC
I am working with a faked HttpContext (code provided in the end) and probably I am missing something because I can\'t access TempData collection (forth line of SetFakeControllerContext method). Every[详细]
2023-01-18 13:15 分类:问答Testing custom ModelBinder against HTTP context in ASP.NET MVC (1.0)
I\'m trying to unit test a custom model binder - specifically, I want to see how it responds to various (possibly conflicting) values being submitted in the Request.Form and Request.QueryString coll开[详细]
2023-01-18 07:08 分类:问答ASP.NET MVC - Unit testing, mocking HttpContext without using any mock framework
Since I\'m having problem with unit testing RenderPartialViewToString() with Moq framework (ASP.NET MVC - Unit testing RenderPartialViewToString() with Moq framework?), I\'m thinking about getting my[详细]
2023-01-15 08:51 分类:问答Example of a simple ASP.NET MVC + NHibernate + Fluent with proper session handling?
I\'m new to all of these technologies. I would like to see a simple (not over the top) example of how you would set up a project with these technologies. The most important being the proper NHibernate[详细]
2023-01-15 07:52 分类:问答What is the most complete mocking framework for HttpContext
I\'m looking for as comprehensive as possible of a mock replacement and wrapper for the ASP.N开发者_如何转开发ET HttpContext in my applications. A comprehensive mock replacement could potentially incr[详细]
2023-01-14 09:13 分类:问答Nullref on Session.Current in App_Code file
I have a class Session.cs in the App_Code directory that needs to extract some values from the session. I define the session with this:[详细]
2023-01-14 03:12 分类:问答