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. :)
Printable View
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. :)
Ian :)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>
cool, thanks! :)
np, I actually typed one part of the code wrong, should be
<INPUT type="Button" Value="Click Me" onclick="vbscript:NewPage()">
Ian :)
yeah, i've noticed that the server inserts that extra space in there. :)