Click to See Complete Forum and Search --> : proper way to make a call to another asp and add passing variables when making a call
raj2000
May 24th, 2000, 05:52 PM
Hi,
I am trying to make a call to another asp and also
pass the variables to another asp.
How do I do this in asp?
Ianpbaker
May 24th, 2000, 07:17 PM
The only way I know to do this, is to have an include file With all your ASP functions ans Sub's in it. All you have to do is make an ASP page with nothing but the functions and subs and in the page that you want to use them, and put in the following line in the head tag of the calling page
<!--#include file="somefile.asp" -->
also if you want to just pass variable there are two things you can do.
either use the Session.Contents("someval") = somevariable then somevariable = Session.Contents("someval") in the page that the data is being sent.
Or send the variable in a querystring. eg. http://www.test.com/test.asp?somevar='test'
then in test.asp have request.querystring("somevar") to retrieve it.
Hope this helps
Ian
[Edited by Ianpbaker on 05-25-2000 at 01:22 PM]
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.