QueryString problem

hi, i have an page that have an querystring like this:

test.aspx?a=1&A=2

the result when i do that:

request.querstring("a")     is    1,2

so, it's getting 2 values and , on the middle. i want to get only 1 as the result?

remember that i can't change the url path. if i could that would be easy. So i need to change on my code side. any help
LVL 1
rafaelrglAsked:
Who is Participating?
 
Vel EousResearch & Development ManagerCommented:
ASP.NET query strings are case insensitive I believe.

You could access the index directly using:

request.querystring("a")(0);
request.querystring("a")(1);

Or loop over them.
0
 
käµfm³d 👽Commented:
I don't have an ASP environment to test at the moment, but you might try modifying the web.config file as demonstrated in this article link to achieve case-sensitive query-string parameters.
0
 
rafaelrglAuthor Commented:
thanks a lots. i have other question that i open, can u guys help?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.