2
Reply

Request.QueryString[] not giving proper reqult

Nitya Menon

Nitya Menon

Sep 10 2013 7:28 AM
1.7k
I have a URL as: http://localhost:52893/books/viewmore?query=RecommendedTitles&subject=Mystery & Detective&slp=1 and i need to get subject as "Mystery & Detective" by using  Request.Querystring["Subject"] in c#. since the Subject is containg "&" sybmol, the output on using Request.Querystring["Subject"] is "Mystery " alone. What should i do to get the proper value using Request.Querystring["Subject"]?

Answers (2)