title: How do I get the HTML encoding to work in my ASPX page?
body: <p>I have the following code in an asp Gridvidiew:</p>
  
  <pre><code>&lt;asp:HyperLink ID="hlPSTNNum"  CssClass="OrdRef" Text='&lt;%# DataBinder.Eval(Container.DataItem, "PSTNNum")%&gt;'  runat="server" ToolTip='please click here to view the full record details'
  NavigateUrl='&lt;%#"https://THE URL IS HERE Searches/advancedsearchresults.asp?supplierid=" + Eval("Supplierid") + "&amp;amp;display1=IS%20Number&amp;amp;display2=Supplier&amp;amp;display3=Product&amp;amp;display4=Supplier%20Order%20Number&amp;amp;order1=order%20date&amp;amp;pstnnum=" + Eval("PSTNNum")%&gt;' /&gt;
  </code></pre>
  
  <p>I think Visual Studio 2012 is playing up about the semicolons in the query string part (from "pstnnum=" + Eval("PSTNNum")%>' />" and i tried to escape them with \ (that keeps VS happy), but the browser leaves one of the slashes in at each escape.</p>
  
  <p>Not sure the best practice here as im still cutting my coding teeth...</p>