Users Pricing

forum

Home Forums Using routes in ASP.NET Gridview Hyperlinks – MindStick

Using routes in ASP.NET Gridview Hyperlinks

Manoj Bhatt 1977 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?


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md