This question is locked. New answers and comments are not allowed.
Is there a way to do a Html.Encode on a varible that I need to use in the routevalues to be passed to the controller?
The route I'm trying to encode is: routevalues(o => o.CustomerName) because the name could have a ampersand within it and messes up the querystring when reading from the controller.
The route I'm trying to encode is: routevalues(o => o.CustomerName) because the name could have a ampersand within it and messes up the querystring when reading from the controller.