Popup another IE

  • Thread starter Thread starter ghostwolf
  • Start date Start date
G

ghostwolf

Hi, how can I popup one more IE instance for showing another web page in
ASP.NET? Thanks a lot.
 
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.
 
thanks, how can I do this in using Javascript?
Przemek Ptasznik said:
ghostwolf napisa?a):
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.
 
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=JavaScript> function
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top