PDA

Click to See Complete Forum and Search --> : Redirect with variables?


dndstef
Oct 20th, 2000, 09:30 AM
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


HtmlContent = "<SCRIPT language='JavaScript'>" & VbCrLf & _
"window.parent.parent.location.href='Gestion.asp';" & VbCrLf & _
"</SCRIPT>" & VbCrLf
Response.Write HtmlContent

monte96
Oct 20th, 2000, 09:58 AM
HtmlContent = "<SCRIPT language='JavaScript'>" & VbCrLf & _
"window.parent.parent.location.href='Gestion.asp?MyVariable=" & MyVariable & "';" & VbCrLf & "</SCRIPT>" & VbCrLf
Response.Write HtmlContent

dndstef
Oct 20th, 2000, 03:29 PM
I'm unable to retrieve the content of the variable.

I've set a fiexed variable to test it as below.


"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.

monte96
Oct 21st, 2000, 12:06 AM
No.. Use Request.Querystring("Var1")

Request.Form will only have data from a form that is submitted.