Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / August 2005

Tip: Looking for answers? Try searching our database.

embedding <a href > tag in DataGrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
OutlookNewbieDev - 24 Aug 2005 00:00 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.