Yes. Does anything need to be defined in the header of the page? It looks
like the ending script tag </script> is closing the <script runat="server">
because it doesn't recognize my other function.
This is what I have:
<script runat="server">
Sub State_SelectedI ndexChanged(sen der As Object, e As EventArgs)
If State.SelectedI tem.Value="AK" Then
Response.Write( "<script>window .open
(""http://www.eed.state.a k.us/contentStandard s/"")</script>")
End If
End Sub
This is the compiler output:
error BC30081: 'If' must end with a matching 'End If'.
If State.SelectedI tem.Value="AK" Then
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~
C:\Inetpub\wwwr oot\web\pd\ELLC ourses2.aspx(12 ) : error BC30648: String
constants must end with a double quote.
Response.Write( "<script>window .open
(""http://www.eed.state.a k.us/contentStandard s/"")
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~
C:\Inetpub\wwwr oot\web\pd\ELLC ourses2.aspx(18 2) : error BC30451: Name
'GetLinks' is not declared.
target.DataSour ce = CType(GetLinks( ),Object)
~~~~~~~~
C:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\Te mporary ASP.NET Files\root\
54f85d9e\82f89d a3\v4gskhug.0.v b(424) : error BC30289: Statement cannot
appear within a method body. End of method assumed.
Public Sub New()
~~~~~~~~~~
Thanks so much
--
Message posted via
http://www.dotnetmonster.com