From asp.net you use RegisterClientScriptBlock, theres an example below to
get you started.
--
--
Regards
John Timney (MVP)
<html>
<head>
<script language="VB" runat="server">
Sub Page_Load( sender as Object,e as EventArgs)
'Form the script that is to be registered at client side.
Dim scriptString as String = "<script language=JavaScriptfunction
DoClick() {"
ScriptString +=
"window.open('http://www.mvps.org','MyWindow','width=500,height=500');} <"
scriptString += "/"
scriptString += "script>"
If(Not IsClientScriptBlockRegistered("clientScript"))
RegisterClientScriptBlock("clientScript", scriptString)
End If
End Sub
</script>
</head>
<body topmargin="20" leftmargin="10">
<form id="myForm" runat="server">
<INPUT id="launchButton" onclick="DoClick();" type="button"
value="Submit" name="myButton" runat="server">
</form>
</body>
</html>
"ghostwolf" <yl***@roctec.com.hkwrote in message
news:e9**************@TK2MSFTNGP06.phx.gbl...
thanks, how can I do this in using Javascript?
"Przemek Ptasznik" <pp******@mila.wywal.to.edu.pllwrote in message
news:eb**********@inews.gazeta.pl...
>ghostwolf napisa?a):
>>Hi, how can I popup one more IE instance for showing another web page in
ASP.NET? Thanks a lot.
It's not happening on the server side, so ASP.NET has nothing to do with
it.
You must do it from javascript or vbscript which is send to client with
generated html.
But generally it's not very clever idea because a lot of users are
blocking such popups in their browsers and you're unable to override
this.
--
PP