ASP  «Prev  

URL-encoded string in ASP

Server.URLEncode(string)
Elements that make up the URL encoded String.
Elements that make up the URL encoded String.

  1. 1) Blue Dot: This is the standard HTML code for a hyperlink anchor
  2. 2) red dot: This is a variable containing our homepage URL (we first defined this in the lesson where we set up the Global.asa file. It will be replaced with the "real" URL for our site.
  3. 3) Green Dot: URLEncode the string: product.asp?shirt=U of C Tshirt; the trailing"> is for the HREF
  4. 4) Yellow Dot: The text of the A HREF.
  5. 5) Violet Dot: The code for the end of the hyperlink achor tag is shown above in purple.