Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading hyperlink column value

Status
Not open for further replies.

afybim

Technical User
Nov 13, 2002
16
0
0
TR
Hi,
I have a little datagrid in my project and i am using identity column as hyperlink column. When id column is clicked some parameters are passing another page opened.
I have to read these hyperlink column contents. But I only see blank.

How can i read hyperlink column contents?

dim a as string
a=e.item.cells(0).text
--------------------------
run:
a=
 
Because the value isn't in the cell. It's in a HyperLink as that is the type of column you have specified. You will need to either use FindControl or look at the Controls collection to get a reference to the HyperLink.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top