advertisement

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
Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • JavaScript for other ASP.NET
    2006-01-26 10:22:21  cbran [Reply | View]

    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