I have to migrate a web application I made with ASP.NET MVC to a regular Visual Studio 2005 ASP.NET Web Forms based website.
I’ve looked at things like MonoRail, but it’s too different for my co-workers (who are already uncomfortable with MVC) to use.
I’ve read that the first version of ASP.NET MVC was made in an airplane flight, that’s around the kind of complexity I’m willing to deal with.
I don’t need an ORM. I have a homegrown ORM that I’ve been using for a long time that I will use to replace Entity Framework.
Specifically I’m mostly looking for two things: how to do routes using a line or two in a web.config and a fancy Default.aspx, and how to render an aspx page with model data injected into it.
I was able to take the code from the blog post I mentioned before (A MVC Framework implementation in .Net 2.0 (Spanish)) and beat it into something barely usable.
Since I don’t understand httpHandlers at all, I added a hack using the Intelligencia.UrlRewriter. In the end I added the following to my web.config
By doing this I had to append a aspx to the end of the url like so: /MyApp/Home/Index.aspx. I tried using a .mvc extention, but that didn’t work either.
I still have problems with Posting though. It’ll take a fair amount of work to get Alejandro’s MainController to handle multiple post variables properly, I’m probably going to have to make a FormCollection class.