2
Answers

Request.QueryString[] not giving proper reqult

Nitya Menon

Nitya Menon

11y
1.7k
1
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)