Hello,
I'm new to ASP.NET but have done quite a bit of classic ASP. I need to
drill down to another page from the DataGrid using a record's ID. In classic
ASP, this was quite easy but I can't find anything equivalent in ASP.NET.
For example, I need to go from a page that lists Customers to a page for
CustomerDetails by allowing the user to click anywhere on the row of the
DataGrid.
I've read about using a TemplateColumn and a lable but it doesn't look like
the same functionality. Any help is very much appreciated.
Regards,
ASP.NET Newbie
Cathal Connolly [VB MVP] - 24 Aug 2005 02:00 GMT
The best option is probably a HyperLinkColumn e.g.
<asp:HyperLinkColumn DataTextField="idfromdatabase" HeaderText="Customers"
DataNavigateUrlField="idfromdatabase"
DataNavigateUrlFormatString="customers.aspx?path={0}">
</asp:HyperLinkColumn>
Cathal
> Hello,
>
[quoted text clipped - 12 lines]
>
> ASP.NET Newbie
OutlookNewbieDev - 24 Aug 2005 16:16 GMT
That was exactly what I needed. Thank you Cathal.
> The best option is probably a HyperLinkColumn e.g.
>
[quoted text clipped - 22 lines]
> >
> > ASP.NET Newbie