William Duffy

Glasgow Based C# ASP.NET Web Developer

Tag archive for ‘UrlEncode’

ASP.NET Request.Querystring with escaped ampersands

Take the following url “/images/myimage.jpg&width=300″. URL Encoding has no support whatsoever for HTML Encoding so passing an escaped ampersand html entity though a url in this format is illegal. Now, you may well be thinking “Hold on a minute William, I need to escape my ampersands to have valid XHTML markup on my pages”. Your [...]