Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 April 7th, 2004, 10:55 AM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rexecampbell
Default Link to a specific record

I have a table which returns records from a recordset. Each record contains a unique number. I want that unique number to be a link that opens another asp page where the record data is shown in a form form so that it can be modified when submitted. Any assistance you can provide would be greatly appreciated.

Yes I am kinda new to ASP.
 
Old April 7th, 2004, 11:02 AM
Authorized User
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hcweb
Default

You could use a querystring like so:

Response.Write "<a href='yourpage.asp?record_id=" & rs("record_id") & "'>Click Me</a>

On the subsequent page you will pull in the querystring like so:

Dim strID
strID = Request.Querystring("record_id")

You can then query the database with the record id and complete your form.
 
Old April 7th, 2004, 01:40 PM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rexecampbell
Default

Thanks for the tip, can't wait to see this work.





Similar Threads
Thread Thread Starter Forum Replies Last Post
double click for specific record naveed77 Beginning VB 6 0 December 4th, 2007 04:55 AM
choose specific record ar555 Dreamweaver (all versions) 12 January 12th, 2007 01:04 PM
Going to a specific record in a separate subform discorhino Access VBA 2 August 7th, 2006 12:35 AM
How do you open a specific record from a search? Szimmer9 VB How-To 1 March 31st, 2006 12:57 AM
Link from listbox to a specific fram myedu2k4 Dreamweaver (all versions) 6 May 26th, 2004 02:38 AM





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