advertisement

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

Main Topics Oldest First

Showing messages 1 through 2 of 2.

  • JavaScript for other ASP.NET
    2006-06-08 09:40:10  SU [Reply | View]

    Did you happen to resolve this issue. I am also getting the same error.

    If you know what the cause and how to resolve this please share with me. Thanks in advance
  • JavaScript for other ASP.NET
    2006-02-06 02:40:35  mohanramkumar [Reply | View]

    Hi this is mohan from photoninfotech.I am basically an mechanical engg i completed in 2005 and directly came to s/w field and now i am doing small tasks .I have a small problem with this i need some help from u,here i am using the javascript for coding and my question is

    Actually i created a 3types of fileds
    1)id
    2)name
    3}address
    now the problem is that all these 3fields are in the same web page,what i required is i need to have the 3fields in another page like the login page i tried it using the pannel,tables and all but i could not get it,so can i please help me how can i get the 3fields in the same page.