ASP expected end of statement

All about creating websites!
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

ASP expected end of statement

Post by ayu »

Tried to output some ASP code to a file via an SQL query.
Although when I run the file I get this error:

Code: Select all

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/tmp.asp, line 4

HelloWorldLabel.Text = "Hello, world!";
--------------------------------------^

Now, usually this would be because there is no new line after the statement, but there is.
Any ideas?
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: ASP expected end of statement

Post by bad_brain »

hm, tried to put the statement into (" ") already? :-k
Image

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Re: ASP expected end of statement

Post by ayu »

I kind of solved that problem, now I got a new one lol xF (I hate ASP and VB)

The following works

Code: Select all

<%= Hello world %>
But if I write the following to check if the server supports VB or C#, I get an error

Code: Select all

<script runat="server" language="VB"></script>

Code: Select all

Active Server Pages error 'ASP 0129'

Unknown scripting language

/tmp.asp, line 1

The scripting language 'VB' is not found on the server. 
The first error in my first post said "Microsoft VBScript compilation error '800a0401'", which I interpreted as the server supported at least VB, but new error says otherwise x).
The server is full of asp pages that connect to a MySQL database and what not, so some sort of language must be supported (It's a Windows server).

Does "classic ASP" count as a language maybe, and does it support connecting to a database without VB?
"The best place to hide a tree, is in a forest"

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Re: ASP expected end of statement

Post by ayu »

Turns out it's called "VBScript" and not "VB" sometimes ... :)

How I hate Windows Servers
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: ASP expected end of statement

Post by bad_brain »

cats wrote:How I hate Windows Servers
with good reason... :lol:
Image

Post Reply