Mar Chu wrote on 21 sep 2004 in microsoft.public.inetserver.asp.general:
Bob Barrows [MVP] wrote on 22 aug 2004 in
If you want to redirect with a button....
just put below codes into page load event
cmdPrint.Attributes.Add("OnClick",
"javascript:window.open('yournewpage.aspx')")
(cmdPrint is the name of a example button....)
[quoting restored]
Marchu, I fear you are talking ASP.net.
This is a classic asp only NG. [jammer dan]
===============
Hugh, you could try a pure clientside javascript solution
[OT on this NG]:
<button onclick="window.open('myOtherFile.asp')">
Redirect me</button>
================
or a serversided ASP one:
<%
if request.form("redirect")='Redirect me' then
response.redirect "myOtherFile.asp"
end if
%>
<form method=post target='_blank'>
<input type=submit name=redirect value='Redirect me'>
</form>
=================
not tested