This might get you started
<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=400,height=200');} <"
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>
--
Regards
John Timney
Microsoft Regional Director
Microsoft MVP
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:uq*************@tk2msftngp13.phx.gbl...
Hello,
i have an ASP.net page with a button. When the button is clicked i want to
open a new Browser window (400x200px) having only the title bar and
nothing else.This browser window would load newpage.aspx in it.
I would also like to know how to create a button to insert in newpage.aspx
and that would close that same window.
I have no idea of how to do this and until now i didn't find some
information that might help me out.
I am working in ASP.net / VB
Thank You,
Miguel