Click to See Complete Forum and Search --> : Opening a second window


dukey_9000
10-15-2006, 04:18 PM
I want to open a second window using a button control. See the code below:


Sub btnsub_Click(ByVal Sender As Object, ByVal E As EventArgs)

If Page.IsValid Then

'open a new window here code - windowtwo.aspx

End If

End Sub


Can anyone give me some help on what the line of code will be please!

..

so_is_this
11-02-2006, 12:39 AM
Is this a desktop App you're talking about? Because, server-side ASP cannot open windows -- only HTML and client-side script can do that. Of course, ASP can certainly send the JScript code to the client to do that. However, the use of client-side script can be disabled.