Wrox Programmer Forums
|
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
 
Old July 20th, 2004, 11:43 AM
Authorized User
 
Join Date: Jul 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old July 21st, 2004, 11:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

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

Always:),
Hovik Melkomian.
 
Old August 6th, 2004, 02:46 PM
Authorized User
 
Join Date: Aug 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old August 6th, 2004, 02:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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







Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing a Variable LarryS Beginning PHP 1 August 8th, 2006 07:52 AM
passing variable tbekarov ASP.NET 2.0 Professional 7 February 1st, 2006 04:16 PM
Passing variable to a public variable Hudson40 Access VBA 2 February 25th, 2005 06:23 AM
Passing a variable trekmp ADO.NET 1 March 4th, 2004 01:57 PM
passing variable gumgak Classic ASP Databases 13 June 29th, 2003 09:13 PM





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