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.
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.
'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">
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.