I was following an example I found on the site but for some, and it works up to teh point of finding the link buttons text. I need the linkbuttons command argument or the actual text of the link button becuase this is the parameter I need to send thru the querysting to open that page.
It does not seem to get either method.
It does not seem to get either method.
Protected Sub myRadGridFin_ItemCreated(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGridFin.ItemCreated If TypeOf e.Item Is GridDataItem Then Dim SendDDn As String Dim item As GridDataItem = DirectCast(e.Item, GridDataItem) Dim img As Image = DirectCast(item.FindControl("imgPrint"), Image) Dim DDN As LinkButton = DirectCast(item.FindControl("lnkAdd"), LinkButton) SendDDn = DDN.CommandArgument.ToString "neither works" SendDDn = DDN.Text.ToString img.Attributes.Add("onclick", "javascript:window.open('??.aspx?DDN=" + SendDDn.ToString() & "'); return false;") End If End Sub