Groups | Blog | Home
all groups > asp.net > march 2007 >

asp.net : HyperlinkField!!!


Alexey Smirnov
3/12/2007 3:28:59 PM
[quoted text, click to view]


Dim hl As HyperLink = CType(e.Item.FindControl("HyperLink1"),
HyperLink)
hl.NavigateUrl = "http://....."
Adam Knight
3/12/2007 9:58:43 PM
Hi all,

I have a GridView with a number of columns, the last of which is a
HyperLinkField column.

I am wanting to alter the 'NavigateUrl' property of this column at run time.

Currently i am trying to do this via the OnDataBound method of the GridView.

However, I don't seem to be able to retrieve the HyperLinkField from the
GridViewRow object during this event
e.Row;???

Would appreciate any help or insight on how to do this!!!

Cheers,
Adam

AddThis Social Bookmark Button