I am using .NET 4 at my side. While working with my project I noticed a weird issue with querystring. When I am trying to access the following url:
http://localhost:43173/section/pages?userid=1&username=aa
I am not able to get any of the query string parameters. But when I add the “/” slash after the “pages” in the above url
http://localhost:43173/section/pages?userid=1&username=aa
I am able to get querystring params. I am just trying to access the querystring via HttpContext.Current.Request["userid"]
Can you tell me why it is behaving so?
Probably because “pages” is a web folder. If you had something like
it would work without the slash.