Results 1 to 2 of 2

Thread: proper way to make a call to another asp and add passing variables when making a call

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Location
    London, UK
    Posts
    39

    Smile

    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?


  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696

    Wink

    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]
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width