forum

Home / DeveloperSection / Forums / Using routes in ASP.NET Gridview Hyperlinks

Using routes in ASP.NET Gridview Hyperlinks

Manoj Bhatt 1638 23-Aug-2014

I have a Gridview with a Hyperlink column. I want to route(Navigate) using hyperlinks depending on the id value from the database.

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

This results in an error message:

404 page not found

How can this be fixed?


Updated on 23-Aug-2014

Can you answer this question?


Answer

1 Answers

Liked By