title: Why is my ASP function not returning the link inside the A Href?
body: <p>Good Morning,</p>
  
  <p>I'm currently writing a Classic ASP function to amend a URL but adding in the product name to enhance the links strength. I have managed to get the link correct but it's not being placed within the HREF, it's displaying as a URL.</p>
  
  <p>To explain this better please see the example below:</p>
  
  <p>Take a look at the first category output:
  <a href="http://www.dibor.co.uk/sitemap.asp" rel="nofollow">http://www.dibor.co.uk/sitemap.asp</a></p>
  
  <p>The function:</p>
  
  <pre><code>function URLName(var1,var2)
      dim nameString
      dim scString
      scString = UCase(var2)
      nameString = var1
      nameString = Replace(nameString," ","-")
      nameString = Replace(nameString,"'","")
      nameString = Replace(nameString,"!","")
      nameString = Replace(nameString,"&amp;","and")
      varString = LCase(nameString)
      response.write("http://www.dibor.co.uk/Product.asp?ProductId=" &amp; scString &amp; "&amp;title=" &amp; varString)
  end function
  </code></pre>
  
  <p>Output Code:</p>
  
  <pre><code>Response.Write "&lt;li&gt;&lt;a href='" &amp; 
      URLName(LivingRoomFurniture.fields("ProductTitle"), 
      LivingRoomFurniture.fields("StockCode")) &amp; "'&gt;" &amp; 
      LivingRoomFurniture.fields("ProductTitle") &amp; "&lt;/a&gt; - " &amp; 
      FormatCurrency(LivingRoomFurniture.fields("Price"),2) &amp;"&lt;/li&gt;"
  </code></pre>