Is ActionLinks can be provided lowercase without creating your ActionLink HtmlHelper?
Updates: To add root routes to the root collection, see the following link: [ [
Update - 02 / 03/2011: After working from two links since now, I had posted a post some time ago with my solution
The best way to handle this is to force all the paths at the routing level to lowercase, and this will add to your action link Will broadcast properly.
The way I have solved it, it is to create a new path square which overrides the root
and simply the GetVirtualPath
method;
Public Override VirtualPathData GetVirtualPath (RequestContext RequestContact, RouteValueAction Value) {var Virtual Text = base.GetVirtualPath (requestContext, Value); If (virtualPath! = Null) virtualPath.VirtualPath = virtualPath.VirtualPath.ToLowerInvariant (); Come back to the virtual path; }
I have also created some extension methods for route quality
to make it easier to use this new route class.
Comments
Post a Comment