-
I have a code that redirect to another ASP page but i don't
know how to pass a variable to that next form.
Someone can help me with that?
I use this javascript for the redirection
Code:
HtmlContent = "<SCRIPT language='JavaScript'>" & VbCrLf & _
"window.parent.parent.location.href='Gestion.asp';" & VbCrLf & _
"</SCRIPT>" & VbCrLf
Response.Write HtmlContent
-
Code:
HtmlContent = "<SCRIPT language='JavaScript'>" & VbCrLf & _
"window.parent.parent.location.href='Gestion.asp?MyVariable=" & MyVariable & "';" & VbCrLf & "</SCRIPT>" & VbCrLf
Response.Write HtmlContent
-
Unable to get it
I'm unable to retrieve the content of the variable.
I've set a fiexed variable to test it as below.
Code:
"window.parent.parent.location.href='Gestion.asp?Var1=Var12';" & VbCrLf & "</SCRIPT>" & VbCrLf
To retrieve i'm using Request.Form("Var1") is it ok?
Or did i need to retrieve it another way.
-
No.. Use Request.Querystring("Var1")
Request.Form will only have data from a form that is submitted.