title: Server.UrlEncode Encode DataNavigateUrlFormatString
body: <p>How can I url encode the <code>DataNavigateUrlFormatString</code> property? Sometimes the <code>FN</code>   value contains a # which messes up my <code>Request.QueryString["FN"]</code>   .</p>
  
  <p>Below is what I have tried </p>
  
  <pre><code>&lt;asp:HyperLinkField DataNavigateUrlFields="reportFileName" 
                          DataNavigateUrlFormatString='&lt;%#Server.URLEncode("PDFViewer.aspx?FN={0}")%&gt;' Text="View" 
                          HeaderText="View" Target="_blank" /&gt;
  </code></pre>
  
  <p>But I receive error: Error  3   Databinding expressions are only supported on objects that have a DataBinding event. System.Web.UI.WebControls.HyperLinkField does not have a DataBinding event.    </p>