So I was calling the Controller in MVC2 like this and I accessed the classic querystrings just fine. Please notice that the second parameter thing2 is URLEncoded already and again retrieving the URLEncoded querystring and URLDecoding is no problem. My example looks like this...
http://mydomain.com/controller?thing1=1544&thing2=somethingURLEncoded
Now I try to move to the MVC2 ASP.Net way of handling parameters and make myself a nice custom MapRoute. I test it to see that it works with a simple test...
http://mydomain.com/controller/Index/1544/999
I debug with VS2010 step inside of my Index method inside of my controller with success!
I then decide to take the next step and change the last parameter on the URL to be a URLEncoded value...
http://mydomain.com/controller/Index/1544/somethingURLEncoded
Problem I see after executing this in my browser is that it almost looks like MVC2 ASP.Net is automagically URLDecoding this before I get to step inside of my Index method inside of my controller.
What gives? I thought I would be able to get inside of my controller first and the secondly do a URLDecode of my own. Because the orginal data was AES encrypted and had forward slashes in it.., have my parameter prematurely URLDecoding is not a side effect I can plan around.
Please help.