Click here to Skip to main content
15,886,075 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:
VB
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

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900