This post originated from an RSS feed registered with .NET Buzz
by Maruis Marais.
Original Post: How to get rid of an ampersand in the query string
Feed Title: exceptionz
Feed URL: http://feeds.feedburner.com/Exceptionz
Feed Description: I am an XP, TDD, OO and .NET enthusiast. Things like Design Patterns makes my pulse race, I love learning exciting new things and to share my thoughts and techniques with the world. So join me and together we can explore the awesome world of software development
If you’ve worked on web applications, you probably know that using the query string to pass data is important. But how would you handle a string that contains an ampersand in the query string. Here is an example:
string title = “Jack & Jill”;
string category = “Nursery Rhyme”;
Response.Redirect(”Books.aspx?title=” + title + “&category=” + category);
If you try [...]