Nitya Menon

Nitya Menon

  • NA
  • 1
  • 2.1k

Request.QueryString[] not giving proper reqult

Sep 10 2013 7:28 AM
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)