Click here to Skip to main content
14,669,375 members
Rate this:
Please Sign up or sign in to vote.
See more:
How to send values in loop once selected checkbox of gridview to next page using session? Help please.
Here's my query

main page:
Dim checked As String

For Each Row As Gridview1 In gridview.Rows
   Dim chk As CheckBox = Row.FindControl("chk")
   If chk.Checked = True Then
      Session("next")=checked.row.cells(0)
      response.redirect(session("next")

Another page
lable1.text = session("next")
Posted
Updated 3-Jan-13 10:54am
v3

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You store them in the session, and read them from there. If you have no clue how the session works, it's important enough for you to read an article[^] instead of blindly copying and pasting code you don't understand.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100