|
-
Jun 11th, 2002, 04:27 AM
#1
Thread Starter
Fanatic Member
passing querystring to ASP page with vbscript
is there any way i could pass a querystring to another ASP page using vbscript? i can't do it using the onclick of a button, cos i'm building the querystring in a sub, so i have to do it from there. thanks.
-
Jun 11th, 2002, 04:32 AM
#2
Fanatic Member
Code:
<HTML>
<HEAD>
<SCRIPT Language="VBScript">
Sub NewPage()
window.location.href = "Page2.asp?id=" & SomeVar
End Sub
</SCRIPT>
</HEAD>
<BODY>
<INPUT type="Button" Value="Click Me" onclick="vbscript:NewPage">
</BODY>
</HTML>
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Jun 11th, 2002, 04:35 AM
#3
Thread Starter
Fanatic Member
cool, thanks!
-
Jun 11th, 2002, 04:37 AM
#4
Fanatic Member
np, I actually typed one part of the code wrong, should be
<INPUT type="Button" Value="Click Me" onclick="vbscript:NewPage()">
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Jun 11th, 2002, 04:45 AM
#5
Thread Starter
Fanatic Member
yeah, i've noticed that the server inserts that extra space in there.
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
|