Load XML Unexpected End Of File

Part of my application retrieves query string via a http post. eg, http://a.c.com/app/test.aspx?

qs =Request.QueryString("str")

qs is in valid xml form, however i encountered the following error due to the '#' sign which is not a reserved symbol in xml. The process will be ok if i remove the # sign. Pls advise.

Unexpected end of file has occurred. The following elements are not closed: ID..
Who is Participating?
BTosonConnect With a Mentor Commented:
This is occurring due a value in a url followed by a # indicates a link to an anchor on the page.
If you examine your actual query string received by ASP.NET, you will notice that anything after and including the hash character will not be sent by the browser.
shiaoyan05Author Commented:
Thanks for the tip!
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.