Interesting idea. I didn't know you could use web forms that way. We are currently integrating old web form apps with IgnoreRoutes I'll definitely bookmark your question ;) But maybe I can help you with your problem.
The good old HttpContext still exists, it's just wrapped by MVC into the mock friendly HttpContextBase You can retrieve the original HttpContext with var context = System.Web.HttpContext. Current In a controller you have to specify the type fully to distinguish it from the controller property called HttpContext.
Interesting idea. I didn't know you could use web forms that way. We are currently integrating old web form apps with IgnoreRoutes.
I'll definitely bookmark your question ;) But maybe I can help you with your problem. The good old HttpContext still exists, it's just wrapped by MVC into the mock friendly HttpContextBase. You can retrieve the original HttpContext with var context = System.Web.HttpContext.
Current; In a controller you have to specify the type fully to distinguish it from the controller property called HttpContext.
I get partial success with this. I can get my custom url to bring up the web service but it fails when trying to invoke it. – Nathan Palmer Jun 25 '09 at 5:15 Then your best chance is to debug through the ASP.NET code to the point where if fails and find out why... – chris166 Jun 25 '09 at 5:46.
This is how I do it: Return New WebServiceHandlerFactory(). GetHandler(HttpContext. Current, "*", "/Build/WebService.
Asmx", HttpContext.Current.Server. MapPath(aspxToLoad)).
Cha-ching! Thanks, Markive! – pettys Oct 24 at 4:49.
What I'm trying to accomplish is to control the urls for my web services through the normal routing system. An example is wanting TestService. Asmx to come up as ExampleTestService/.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.