If I have a url generated this way
<%=Html.ActionLink("Link name", "MyAction", "MyController", new { SomeParameter = "value with spaces" })%>
can easily generate html output this way
<a href="/MyController/MyAction/value+with+spaces">
instead
<a href="/MyController/MyAction/value%20with%20spaces">
Or is it best for me to look at overloading the ActionLink method and replacing these characters when returning a string?
source
share