p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 1.0 (http://p2p.wrox.com/forumdisplay.php?f=26)
-   -   Passing a variable (http://p2p.wrox.com/showthread.php?t=15687)

mrideout July 20th, 2004 11:43 AM

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

melvik July 21st, 2004 11:44 PM

If u open new window, u can use Form_Submit or use ? & [u]Request.QuesryString</u>]
HTH.

Always:),
Hovik Melkomian.

Renu August 6th, 2004 02:46 PM

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


stu9820 August 6th, 2004 02:57 PM

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") & "




All times are GMT -4. The time now is 03:15 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.