About Me

Friday 20 April 2012

Programming ASP in Javascript

Programming ASP in Javascript

VBScript is the default scripting language that ASP is coded in, so if you want to specify a different scripting language you have to state which scripting language you will be using at the very beginning of your code. Below is the line of code that must be your first line of ASP code or else your page will break and you'll get a boring error message.

ASP Code:

<%@ Language="javascript" 
'The rest of your ASP Code....%>
Remember, if this isn't your first line of ASP code then everything will break.

Learning Javascript

If you don't already know javascript very well, then it is probably a good idea if you just learn VBScript instead of trying to get ASP to work with javascript. I have heard of many fellows having trouble getting ASP to cooperate properly with Javascript and there just isn't that many informative examples of programming ASP with Javascript available. Your ASP career will be much more pleasant if you simply stick with VBScript from the get go.

0 comments:

Post a Comment