This is a migrated thread and some comments may be shown as answers.

[Solved] Html.Encode on routevalues

0 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vi
Top achievements
Rank 1
Vi asked on 20 Apr 2013, 01:17 AM
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.
Tags
Grid
Asked by
Vi
Top achievements
Rank 1
Share this question
or