Querystring formatting in asp.net MVC 2
Posted
by Stuart
on Stack Overflow
See other posts from Stack Overflow
or by Stuart
Published on 2010-05-20T14:11:38Z
Indexed on
2010/05/20
20:50 UTC
Read the original article
Hit count: 216
Seems like a straitforward question but I can't quite figure it out myself...
I have an actionlink like so
Html.ActionLink( "Test", "test", new { q = "search+twitter" } )
This produces a url string as follows
http://myserver/test?q=search%2Btwitter
But i would like to preserve the plus sign (which i assume is being UrlPathEncoded) so that I get the following url
http://myserver/test?q=search+twitter
Is there an easy way to do this whilst still using Html.ActionLink ?
© Stack Overflow or respective owner