Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reponse.Redirect

Status
Not open for further replies.

k2

Programmer
Jan 22, 2001
1
BN
Can response.redirect work if placed between <Script Language=&quot;VBScript&quot;> ... </Script> Tag? Paste Code within Onclick Sub module is highly appreciated.

Thanks
Ifs :)
 
No, it will not work. ASP will process the command and simply do it no matter what the client wants. Use this instead...

Code:
default.html/asp

<html>
<script language=&quot;vbscript&quot;>
	Sub Redirect_OnClick()
		window.navigate(&quot;test.html&quot;)
	End Sub
</script>
<body>
	<input type=button id=Redirect value=&quot;Redirect&quot;>
</body>
</html>

test.html

<html>
<body>
	Redirected!
</body>
</html>

Later, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top