November Happy Hour will be moved to Thursday December 5th.

Friendly URLs and multiple-value querystring parameters

Vote:
 
It seems that the friendly URL handling removes multiple values from querystring parameters. I have a URL like this: http:/the.site.se/the/friendly/url/?item=1&item=2&item=3&submit=Compare but Request.QueryString.GetValues("item") only has one item (the last one in the URL, ie 3). And with Trace turned on the querystring is reported as id=21&item=3=submit=Compare It would seem that this is a problem with the friendly URL rewriting. Changing the form to use a POST request fixes the problem, but I don't really think a POST request is appropriate.
#17629
Apr 20, 2007 9:39
Vote:
 
It also seems that friendly URLs cut off parameter values at the first ";" or "#" character (and possibly other characters), even if these are URL encoded according to the URL shown in the browser. Obviously, query strings must be used with great care and contain values only in very well-defined formats.
#18464
Apr 25, 2007 13:16
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.