| Article: |
Enhancing ASP.NET Pages with JavaScript | |
| Subject: | JavaScript for other ASP.NET | |
| Date: | 2004-01-03 16:33:08 | |
| From: | anonymous2 | |
|
Great job! Thanks, Alex |
||
Showing messages 1 through 1 of 1.
| Article: |
Enhancing ASP.NET Pages with JavaScript | |
| Subject: | JavaScript for other ASP.NET | |
| Date: | 2004-01-03 16:33:08 | |
| From: | anonymous2 | |
|
Great job! Thanks, Alex |
||
Showing messages 1 through 1 of 1.
The pop_window routine is called from an asp:button.
Here is your example:
Sub pop_window(Sender As Object, e As EventArgs)
Dim popupScript As String = "<script language='javascript'>" & _
"window.open('PopUp.aspx', 'CustomPopUp', " & _
"'width=200, height=200, menubar=yes, resizable=no')" & _
"</script>"
Page.RegisterStartupScript("PopupScript", popupScript)
End Sub