Url encode and routing?

Posted by Curtis White on Stack Overflow See other posts from Stack Overflow or by Curtis White
Published on 2010-06-01T03:24:56Z Indexed on 2010/06/01 3:33 UTC
Read the original article Hit count: 428

Filed under:
|
|
|

I'm using custom routing in a web forms context. I have some titles (part of my custom route) that have say a question mark character. When I URL encode this text ("Question?") and then pass into my route, I get an HTTP ERROR CODE 400. Apparently, the URL encoded text is somehow confusing the routing manager.

Can someone provide context and explanation for this? Beyond that, I'm thinking I don't need to URL encode these route data but merely strip out the problem characters. Are there any security risks to not using URL decode/encode? And what are the problem characters? A list would be useful.

Thanks!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about routing