Passing a variable type parameter to an .asp file 
Author Message
 Passing a variable type parameter to an .asp file

Hi,

I would like to pass a parameter to another .asp file but find that it is
not as easy.
This is what I am trying, am I missing something.  Another thing how do you
reference it in the other .asp file.

My example:

sub GetPage()
  dim page
  page = parent.main.Document.location.href   # Returns the current URL into
page variable

  parent.main.Navigate "/support/help/intrahelp.asp?page"    #  Here I
navigate to the .asp file passing the parameter,  page
end sub

This is how I try and reference it:

<%= Request.QueryString("page") %>

Am I missing something or is there another way of doing it



Mon, 22 May 2000 03:00:00 GMT  
 Passing a variable type parameter to an .asp file

From Andrewz

Add the following code to your ASP page1.  KEY the POST sends the variables to
default.asp

Response.Write "<form action=/default.asp method=" + "'post'>"
Response.Write "<input type=" + "'hidden' name=" + "'hidDsn' value=" + "'" +
sDsn + "'>"
Response.Write "<input type=" + "'submit'" + " value=" +"'Go'" + "name=" +
"'B1'>"
Response.write "</FORM>"

Default.asp
The following captures hidden variables with the above example.
        MyDSN = Request.Form("hidDsn")
The following works with the get method
        MyCust = Request.QueryString("hidDSN")

Quote:

> Hi,

> I would like to pass a parameter to another .asp file but find that it is
> not as easy.
> This is what I am trying, am I missing something.  Another thing how do you
> reference it in the other .asp file.

> My example:

> sub GetPage()
>   dim page
>   page = parent.main.Document.location.href   # Returns the current URL into
> page variable

>   parent.main.Navigate "/support/help/intrahelp.asp?page"    #  Here I
> navigate to the .asp file passing the parameter,  page
> end sub

> This is how I try and reference it:

> <%= Request.QueryString("page") %>

> Am I missing something or is there another way of doing it



Mon, 22 May 2000 03:00:00 GMT  
 Passing a variable type parameter to an .asp file

Quote:
>  parent.main.Navigate "/support/help/intrahelp.asp?" & page

>Hi,

>I would like to pass a parameter to another .asp file but find that it is
>not as easy.
>This is what I am trying, am I missing something.  Another thing how do you
>reference it in the other .asp file.

>My example:

>sub GetPage()
>  dim page
>  page = parent.main.Document.location.href   # Returns the current URL
into
>page variable

>  parent.main.Navigate "/support/help/intrahelp.asp?page"    #  Here I
>navigate to the .asp file passing the parameter,  page
>end sub

>This is how I try and reference it:

><%= Request.QueryString("page") %>

>Am I missing something or is there another way of doing it



Mon, 22 May 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. how to pass parameters in an include file which is included in an asp page

2. VB 5.0 and Inter-language Data Type Conversions (COBOL) and Parameter Passing

3. passing javascript variable into asp variable using vbscript

4. Passing Javascript Variables to VBscript (ASP) Variables

5. Passing variable value as parameter

6. How do you pass parameters from a batch file to a VBS file

7. How to pass Date type variable to a custom ActiveX component

8. passing TYPE Variables

9. Type problem: passing variables to methods

10. Passing parameter to event code from ASP

11. Frames and ASP and passing parameters / values

12. how to pass a array parameter from my script in asp

 

 
Powered by phpBB® Forum Software