Dim sb As New System.Text.StringBuilder
sb.Append("'width=800, height=600, menubar=no, resizable=yes');<")
Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "repScript", sb.ToString)
In the RowDataBound even I have the following:
If (e.Row.RowType = DataControlRowType.DataRow) Then
Dim oBtn As Button = DirectCast(e.Row.Cells(0).FindControl("RepBtn"), Button)
The problem is that the popup is being shown when I click any button in that row of the GridView. I'm also trying to figure out how to pass an item from the clicked row (the report name in this case) to the popup window page (which hosts a ReportViewer control, so I need to tell it which report to run). I'm guessing I could just use a session item for this, but I need to know how to get the row that was clicked. Any input?