This topic is locked

Where do you use what programming languages?

5/3/2011 7:11:18 PM
ASPRunnerPro General questions
B
beachldy author

I'm fairly new to ASPR, and don't know what programming languages I can use and where to use them.
VBScript, Javascript, ASP, any others?
In the events section, where can you add VBScript,Javascript, and ASP?
Is Javascript only available from the event "Javascript on load"?
I can't seem to get any VBscript to work at all.

Sergey Kornilov admin 5/3/2011

ASP is VBScript. All server side events use ASP (VBScript). 'Javascript OnLoad' event uses Javascript.

B
beachldy author 5/4/2011

Thanks, that explains alot.
I look at some of the forums and help files, and it looks like 20 different languages.
How and where would I add a vbscript, like the example below? HTML? or on an event?
<%@ Language=VBScript %>

<%

If Session("UserID")="" Then

Response.Redirect "login.asp"

End If

%>

Sergey Kornilov admin 5/4/2011

The right question to ask is "how I do this or that". This will point you to specific event where you can add your code (ASP or Javascript). Counting the number of languages won't get you anywhere.