hotshot, your code will not work. When writing JavaScript out to the browser via Response.write you have to do something like this
strJavaScript = "<script language=javascript>"
'code
strJavaScript +="</scr" & "ipt>"
If you dont do this you will get an "Invalid Pointer"
JS error at runtime. (all aspx pages use javascript for the postback function so using your example will cause the script to fail.)
You can use Jason's code or the following code to achieve your results:
priave sub button1_click....
Dim strJavaScript as new system.text.stringBuilder
strJavaScript.append("<script language=javascript>")
strJavaScript.append("window.open('yourwindow.aspx ','yourwindowname','toolbar=0,menubar=0,directorie s=0');")
strJavaScript.append("</scr" &"ipt>")
response.write(strJavaScript)
end sub
hope that helps you.
"The one language all programmers understand is profanity."