Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 20th, 2004, 11:43 AM
Authorized User
 
Join Date: Jul 2004
Location: St. John\'s, NL, Canada.
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
  #2 (permalink)  
Old July 21st, 2004, 11:44 PM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
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.
  #3 (permalink)  
Old August 6th, 2004, 02:46 PM
Authorized User
 
Join Date: Aug 2004
Location: , , .
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
  #4 (permalink)  
Old August 6th, 2004, 02:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,111
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") & "


 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:41 AM.


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