Mar Chu wrote on 21 sep 2004 in microsoft.publi c.inetserver.as p.general:
Bob Barrows [MVP] wrote on 22 aug 2004 in Hugh Welford wrote: is it possible to open a page in a new window with
response.redire ct, and if so, what is the syntax
Only if the page being redirected to contains client-side code to
open a page in a new window.
If you want to redirect with a button....
just put below codes into page load event
cmdPrint.Attrib utes.Add("OnCli ck",
"javascript:win dow.open('yourn ewpage.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('myOtherF ile.asp')">
Redirect me</button>
=============== =
or a serversided ASP one:
<%
if request.form("r edirect")='Redi rect me' then
response.redire ct "myOtherFile.as p"
end if
%>
<form method=post target='_blank' >
<input type=submit name=redirect value='Redirect me'>
</form>
=============== ==
not tested
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)