•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 429,752 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,992 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1651 | Replies: 8
![]() |
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation:
Rep Power: 3
Solved Threads: 47
Hi there Thunderman and welcome to DaniWeb! Here is a great link where I believe you will find your answer:
Hope that helps you
Hope that helps you
Last edited by majestic0110 : May 20th, 2008 at 10:25 am.
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
•
•
Join Date: May 2008
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
Hi there Thunderman and welcome to DaniWeb! Here is a great link where I believe you will find your answer:
Hope that helps you
Hi majestic
I looked at the link you gave me, but they only discuss the way to pass the values through querystrings, but I like to pass my values through sessions, so I don't need to add something extra in my URL
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation:
Rep Power: 3
Solved Threads: 47
I think the second post on that link is what you need:
VB Syntax (Toggle Plain Text)
Dim gridrow As GridViewRow = GridView1.SelectedRow Session.Add("Value1", gridrow.Cells(0).Text) Session.Add("Value2", gridrow.Cells(4).Text) Response.Redirect("TestPage.aspx") End Sub
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
•
•
Join Date: May 2008
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
I think the second post on that link is what you need:
VB Syntax (Toggle Plain Text)
Dim gridrow As GridViewRow = GridView1.SelectedRow Session.Add("Value1", gridrow.Cells(0).Text) Session.Add("Value2", gridrow.Cells(4).Text) Response.Redirect("TestPage.aspx") End Sub
I 've tried your code you gave me, but I don't want to get one value at a time out of my gridview. My problem is, I select multiple rows with my checkbox and I want to get the selected rows in on time and pass them to another page.
•
•
Join Date: May 2008
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
I want to past my selected rows from my firstpage.aspx to a secondpage.aspx. I already got the code to put my values in an array and send the array to my secondpage.aspx with an session but I can't get the values out of my array on the secondpage.aspx. I get an error: nullreferenceexception was unhandled by user code.
This is my code I use on my secondpage.aspx to get the values out of my array and try to put them into a table.
This is my code I use on my secondpage.aspx to get the values out of my array and try to put them into a table.
vb.net Syntax (Toggle Plain Text)
'variabelen in tabel inlezen Dim hshToestel As Hashtable hshToestel = Session("Reservatie") For Each oToestel As clstblToestellen In hshToestel Dim tr As New TableRow tr.Cells.Add(oToestel.fnSelect) tblReservatie.Rows.Add(tr) Next
Last edited by peter_budo : May 31st, 2008 at 6:54 am. Reason: Use [code=langauage] not <code = langauge> without spaces in tag
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the ASP.NET Forum
- Previous Thread: Subtracting DateTime Data Type in SQL Server
- Next Thread: Need information about winDNA



Linear Mode