|
-
Oct 20th, 2000, 09:30 AM
#1
Thread Starter
Lively Member
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
If possible please provide codes.
Process by example is the best way to learn.
-
Oct 20th, 2000, 09:58 AM
#2
Frenzied Member
Code:
HtmlContent = "<SCRIPT language='JavaScript'>" & VbCrLf & _
"window.parent.parent.location.href='Gestion.asp?MyVariable=" & MyVariable & "';" & VbCrLf & "</SCRIPT>" & VbCrLf
Response.Write HtmlContent
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Oct 20th, 2000, 03:29 PM
#3
Thread Starter
Lively Member
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.
If possible please provide codes.
Process by example is the best way to learn.
-
Oct 21st, 2000, 12:06 AM
#4
Frenzied Member
No.. Use Request.Querystring("Var1")
Request.Form will only have data from a form that is submitted.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|