Question GridView link primary key

SumRandomGuy

New member
Joined
Feb 22, 2021
Messages
1
Programming Experience
10+
Hi.

I am dynamically building a GridView for a web page and binding it to a query. If the query contains a column named PackageId, I want to transform the data to a link, i.e. I want to have the option to get more details if the field PackageId exists. I want to convert the package id from 111 to <a href="details.aspx?packageid=111">.

I'm not finding how to do that. Could someone provide a bit of guidance?
 

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
3,386
Location
Chesapeake, VA
Programming Experience
10+
Moving into WebForms since our OP mentioned GridView for a web page.
 
Top Bottom