 |
BOOK: Beginning ASP.NET 1.0  | This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 1.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

July 20th, 2004, 11:43 AM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Passing a variable
Hello,
I have a datagrid with "edit" and "delete" commands. Each item gets a edit & Delete. When a user clicks the edit link i open a new page with a form to edit the particular record in a database.
My trouble is that I can't find a way to pass the ID of the record that the user clicked on in the first form to display the proper information in form2. I have tried using a session variable, but to no luck.
Any help with this is appreciated.
Thanks In Advance,
Mark G Rideout:D
|
|

July 21st, 2004, 11:44 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
If u open new window, u can use Form_Submit or use ? & [u]Request.QuesryString</u>]
HTH.
Always:),
Hovik Melkomian.
|
|

August 6th, 2004, 02:46 PM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi I have the exactly same problem. I have been batteling with it for the last 2 days. If you got the fix, please provide me also with the fix. I tried the Response.querystring, but I only get the row index. I need the value of the column to check in my "where clause"
Quote:
quote:Originally posted by mrideout
Hello,
I have a datagrid with "edit" and "delete" commands. Each item gets a edit & Delete. When a user clicks the edit link i open a new page with a form to edit the particular record in a database.
My trouble is that I can't find a way to pass the ID of the record that the user clicked on in the first form to display the proper information in form2. I have tried using a session variable, but to no luck.
Any help with this is appreciated.
Thanks In Advance,
Mark G Rideout:D
|
|
|

August 6th, 2004, 02:57 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
If you're going to insist on opening another page then you'll have to code the edit link to carry the ID of the record in the querystring just like classic ASP.
edit.aspx?currentID= " & recordset("id") & "
|
|
 |