L
Lloyd Sheen
I have a page with the following script (no code behind ,using WebMatrix -
customer doesn't want to spend money on dev tools).
'Dim psInfo() As String
'psInfo = Split(psSV, "/")
psURL += "UID=" & psInfo(0).Trim & "&Lang=" & psInfo(1).Trim
popupScript = "<script language='javascript'>"
popupScript += "window.open('PopUp.aspx', 'CustomPopUp', "
popupScript += "'width=200, height=200, menubar=yes, resizable=no')"
'popupScript += "</script>"
Response.Redirect(psURL)
End Sub
When I run this I get the following error:
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: BC30289: Statement cannot appear within a method
body. End of method assumed.
Source Error:
Line 280: #End ExternalSource
Line 281:
Line 282: Public Sub New()
Line 283: MyBase.New
Line 284: Dim dependencies As System.Collections.ArrayList
If I remove the line 'popupScript += </script> and notice it is
commented the error goes away. I guess ASP parsing is not that good.
Any suggestions.
Lloyd Sheen
customer doesn't want to spend money on dev tools).
'Dim psInfo() As String
'psInfo = Split(psSV, "/")
psURL += "UID=" & psInfo(0).Trim & "&Lang=" & psInfo(1).Trim
popupScript = "<script language='javascript'>"
popupScript += "window.open('PopUp.aspx', 'CustomPopUp', "
popupScript += "'width=200, height=200, menubar=yes, resizable=no')"
'popupScript += "</script>"
Response.Redirect(psURL)
End Sub
When I run this I get the following error:
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: BC30289: Statement cannot appear within a method
body. End of method assumed.
Source Error:
Line 280: #End ExternalSource
Line 281:
Line 282: Public Sub New()
Line 283: MyBase.New
Line 284: Dim dependencies As System.Collections.ArrayList
If I remove the line 'popupScript += </script> and notice it is
commented the error goes away. I guess ASP parsing is not that good.
Any suggestions.
Lloyd Sheen