Prevent asp.net mvc from generating URLs with subfolders?

In your route class override the GetVirtualPath method having it add "../" to the beginning of the Url property of the VirtualPathData object returned by the base. GetVirtualPath call.

I don't believe there's a way to do this that is built in to the framework. You'll have to write your own Html helper extension method.

I think you should write your own Route class witch will rewrite URIs.

Overriding the Route class didn't work, it doesn't handle the ApplicationPath. I think I have to override the GetVirtualPath of the RouteCollection class but I don't know how to do this.

The problem is that asp.net MVC Html.ActionLink() (and similar functions) generates URLS with www.domain.com/Subfolder. I want to be able to remove the "/Subfolder" from the URL as the ISAPI Rewrite will take care of making the link work. How do I do this?

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.

Related Questions