Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 September 17th, 2003, 07:22 AM
Authorized User
 
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default Passing parameters between 2 asp files

Hello !! My Problem goes like this :

Consider 2 files test1.asp and test2.asp , now using forms we pass a parameter param1 from test1.asp to test2.asp where we receive it using command request.form("param1"), now I need to pass another parameter param2 from test1.asp to test2.asp with out using forms, Iam unable to pass both the parameters at the same time as one parameter is passed using forms (on clicking the submit button) and the other parameter is to be passed with out the use of forms.How do I do it ?
Thank You
Praveen

 
Old September 20th, 2003, 02:47 PM
Authorized User
 
Join Date: Sep 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not to clear but...

If the param2 does not need by input, you can put the param2 in
<form action=test2.asp?param2=">

So when ever you got the the next page, you can using request.querry("param2") to got information.

 
Old September 22nd, 2003, 07:51 AM
Cos Cos is offline
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Cos Send a message via MSN to Cos Send a message via Yahoo to Cos
Default

Not very clear indeed, but if I understood well, you wanna pass 2 parameters at the time.

This is done like this:

<form action=test2.asp?param1=value1&param2=value2">

but if you are using already a form, why do you need parameters? Use hidden fields! It's cleaner :)


Linux is like a wigwam : no windows, no gates, apache inside.
 
Old September 23rd, 2003, 02:49 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post
Default

Cos is right. If "Submit" is the only way to get to test2.asp then you're best bet is using a hidden field for Param2.

<input type="hidden" name="Param2" value="<%=Param2%>">






Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing parameters from ASP (VBScript) to XSLT rj_mayer Classic ASP XML 5 January 25th, 2005 04:20 PM
How I can pass parameters to 2 ASP files at ones? zukit Classic ASP Databases 4 December 15th, 2004 05:20 AM
Passing 10 parameters from ASP (VBSript) to COM pankaj_pp Classic ASP Basics 0 May 24th, 2004 05:13 AM
passing parameters spraveens Javascript How-To 1 October 8th, 2003 03:14 AM
Passing Parameters between 2 asp files spraveens Classic ASP Basics 1 September 17th, 2003 10:27 AM





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