asp.net mvc - Create outgoing routes of the form {id}.example.com/{action}? -
I am using ASP.NET MVC 2 beta on VS2008. I also use the form {ID} .example.com / {action} to control the incoming routes. However, I can not get it to make outgoing routes of this form. In general, should it be possible?
If you are familiar with Martan's code, then I am trying to do this. By the way, they have their own HTML extension extensions methods I am using:
see home page / index.aspx:
Global.asax:
route. Add new URL ("domain root", new domain root ("{id} .example.com: 8080", // parameter "{action}", // parameters to new {controller = "home", action = "index" ", Id =" "} / / parameter defaults));
Home Controller CC:
Public Work Domain Domain Route Check (String ID) {ViewData ["foo"] = ID; See Return (); }
Comments
Post a Comment