
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