Manually instantiate a Controller instance from an arbitrary URL?
My skills are failing me, and I know I’ve seen the code around for this but I can’t find it.
My skills are failing me, and I know I’ve seen the code around for this but I can’t find it.
I am working on a website in asp.net mvc. I have a route
Im adding the filevistacontrol to my asp.net MVC web application.
In my asp.net website using MasterPage and Routing I use a tilde in the href attribute of the link tag for the stylesheet in the head section of the MasterPage. Like this:
We have several pages of our site indexed using old non-SEO friendly URLS such as http://www.domain.com/DocumentDetails.aspx?id=555. Recently we implemented routing that uses slugs stored in the database and looks up the slug to forward you to the right page using routing, for example: http://www.domain.com/Documents/Title-of-the-Document
How can I, when executing a controller action, take a Uri (not the one requested) and invoke the action from the controller that would have been executed had that Uri been the one that was called? I can’t simply redirect to that action as I need it to happen in the same request context.
I’m trying to get the current Route into my navigation controller so I can run comparisons as the navigation menu data is populated.
When searching google the only solutions for this come up for MVC websites. My asp.net 4.0 site is not MVC. I want requests for sitemap.xml to load another dynamic .aspx page so I can generate links for google on the fly.
We are replacing an old classic asp website with a .NET 3.5 solution.
I’m trying to add a route in my web forms application by following this: