Using routes in ASP.NET Gridview Hyperlinks
<p>I have a Gridview with a Hyperlink column. I want to route(Navigate) using hyperlinks depending on the id value from the database.</p>

<pre><code>&lt;asp:HyperLinkField  DataNavigateUrlFields="id" 
                      DataNavigateUrlFormatString="product" DataTextField="pName" 
                      HeaderText="Product Name"  
       NavigateUrl='&lt;%$ RouteUrl:id=Eval("id"), routename = ProductRoute%&gt;' 
       /&gt;
</code></pre>

<p>This results in an error message:</p>

<blockquote>
  <p>404 page not found</p>
</blockquote>

<p>How can this be fixed?
 .</p>
