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
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