Best way to format a query string in an asp.net mvc url?

Posted by Stuart on Stack Overflow See other posts from Stack Overflow or by Stuart
Published on 2010-05-25T09:12:17Z Indexed on 2010/05/25 10:01 UTC
Read the original article Hit count: 216

Filed under:
|

I've noticed that if you sent a query string routevalue through asp.net mvc you end up with all whitespaces urlencoded into "%20". What is the best way of overriding this formatting as I would like whitespace to be converted into the "+" sign?

I was thinking of perhaps using a custom Route object or a class that derives from IRouteHandler but would appreciate any advice you might have.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about routing