ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Enhancing ASP.NET Pages with JavaScript
Subject:   JavaScript for other ASP.NET
Date:   2006-01-26 10:22:21
From:   cbran
Response to: JavaScript for other ASP.NET

I copied and pasted your example to open a window, and received error: string constants must end with a double quote.
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


1 to 2 of 2
  1. JavaScript for other ASP.NET
    2006-06-08 09:40:10  SU [View]

  2. JavaScript for other ASP.NET
    2006-02-06 02:40:35  mohanramkumar [View]

    • JavaScript for other ASP.NET
      2006-02-20 10:12:49  Crist3l [View]

      • JavaScript for other ASP.NET
        2007-01-21 23:16:47  samreet [View]

      • JavaScript for other ASP.NET
        2006-03-25 06:38:16  javascript11 [View]

1 to 2 of 2