Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Hyperlink in a DataGrid
Message
 
To
15/05/2004 11:10:48
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00904258
Message ID:
00904379
Views:
28
Another option is to use the grid ItemDataBound event... You can place the below code in the ItemDataBound event:
e.Item.Cells(0).Text = "<a href=CompanyData.aspx?CompanyID=" & e.Item.Cells(9).Text & "&IndexTypeID=" & e.Item.Cells(10).Text & ">" & e.Item.Cells(9).Text & "</a>"
That code would change column 0 to a hyperlink using columns 9 & 10 for the parameters... You can then make 9 and 10 invisiable. ItemDataBound can be used for putting images, colors and a number of other things in a grid extremely easy.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform