GridView Button Field. Type = Link

S

shapper

Hello,

I added, at runtime, a button field of type link to a gridview.

Now I need url of that button, when pressed, to be as follows:

"news.aspx?id=" & channel

"Channel" is the first column of my datasource which is linked to the
gridview.

How can I do this?

Here is the code of my button:

Dim bIcon As New ButtonField
With bIcon
.ButtonType = ButtonType.Link
.ImageUrl =
Me.GetLocalResourceObject("bIcon.ImageUrl").ToString()
End With
gvRSSChannels.Columns.Add(bIcon)

Thanks,

Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top