If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Gridview - Print the Details of Selected Checkboxes in Popup Window

I need some help trying to get a popup window to display the details of the selected checkboxes in a gridview control. I found a site that had some sample code and I got the checkall checkboxes part to work but I can't get the popup window to work. Here is a link to the sample: http://sharepointgroup.wordpress.com...n-popupwindow/. Could someone take look at my code and see where i might be going wrong. Basically I have it where if I hit the "Print Selected Rows" Button nothing happens.

Imports System.Text
Public Class WebForm4
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub GridView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridView1.SelectedIndexChanged
'Check All Checkboxes Code:
' StringBuilder object
Dim str As New StringBuilder()
' Select the checkboxes from the GridView control
For i As Integer = 0 To GridView1.Rows.Count - 1
Dim row As GridViewRow = GridView1.Rows(i)
Dim isChecked As Boolean = DirectCast(row.FindControl("chkSelect"), CheckBox).Checked
If isChecked Then
' Column 2 is the name column
str.Append(GridView1.Rows(i).Cells(2).Text)
End If
Next
' prints out the result
Response.Write(str.ToString())
End Sub
End Class

Here is my code for Print.aspx:

Code:

Public Class WebForm6
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Dim pageCount As Integer = 1
Dim Count As Integer = Convert.ToInt32(Request.Params(0).ToString())
Dim IDList As New List(Of Integer)()
For i As Integer = 0 To Count - 1
Dim ID As String = Request.Params("id" & i.ToString()).ToString()
IDList.Add(Convert.ToInt32(ID))
Next
End If
End Sub
End Class

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.