User Name Password Register
DaniWeb IT Discussion Community
All
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 391,604 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 2,626 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

passing seleced rows from gridview to another page

Join Date: May 2008
Posts: 4
Reputation: thunderman is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
thunderman thunderman is offline Offline
Newbie Poster

Re: passing seleced rows from gridview to another page

  #7  
May 27th, 2008
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.
  1. 'variabelen in tabel inlezen
  2. Dim hshToestel As Hashtable
  3. hshToestel = Session("Reservatie")
  4. For Each oToestel As clstblToestellen In hshToestel
  5. Dim tr As New TableRow
  6. tr.Cells.Add(oToestel.fnSelect)
  7. tblReservatie.Rows.Add(tr)
  8. Next
Last edited by peter_budo : May 31st, 2008 at 6:54 am. Reason: Use [code=langauage] not <code = langauge> without spaces in tag
Reply With Quote  
All times are GMT -4. The time now is 12:00 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC