httpcontext
Mapping query string to object with AutoMapper
I have discovered AutoMapper开发者_开发问答 recently, and I´m thinking if I could mapping HttpConext, (really query parameters) to a typed object.The HttpRequest.QueryString is a NameValueCollection.[详细]
2023-04-12 19:18 分类:问答reusing an asp.net custom server control in MVC3
I have an asp.net custom server control. Is there anyway I can reuse it in MVC3? My existing asp.net control relies quite a bit on storing the information in HttpContext. If I can somehow make the con[详细]
2023-04-10 17:46 分类:问答MVC Testing actions that rely on HTTPContext
I have a project where I need to p开发者_如何学Pythonrovide action tests. My approuch has been to ensure actions do not rely on anything they do not receive as parameters, maing use of ValueProviders[详细]
2023-04-08 14:50 分类:问答HttpContext Class and its Thread Safety
I have an Singleton object in application that has following property: private AllocationActionsCollection AllocationActions[详细]
2023-04-07 17:55 分类:问答Per request code
I have a method, that I want to run once per Http request, but after stuff like Context.Current.User has been assigned.[详细]
2023-04-05 16:24 分类:问答How can I keep track of a shopping cart across multiple projects?
First some background, we are creating a new \"eGov\" application. Eventually, a citizen can request permits and pay for licenses along with pay their utility bills and parking tickets online. Our vis[详细]
2023-04-04 02:22 分类:问答Moq'ing HttpContext.Current
I have a class library that has a method that sends emails based on a template. I access the template via the following:[详细]
2023-04-03 18:36 分类:问答Invoke of ASMX webmethod fails with XMLException but works without an ASP.Net client
When I test my webservice from my development webserver (screen below) I click the INVOKE button and a new window opens, prompts for OPEN or SAVE, and the application associated with the filetype open[详细]
2023-04-03 10:11 分类:问答HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"] is returning IPv6
Microsoft\'s HttpContext.Current.Request.ServerV开发者_如何学运维ariables[\"REMOTE_ADDR\"] is returning IPv6 for the remote client. However, I need to use this data for a session logging table where t[详细]
2023-04-03 02:33 分类:问答How to have a webmethod POST to an HTTPHandler.ashx file
Summary How to create an HTTPContext within a webservice? or POST to a Handler.ashx from a webservice?[详细]
2023-04-03 02:04 分类:问答