How to change the default page asp language from JScript to VBScript

  • Thread starter Thread starter younoemi
  • Start date Start date
How to change the default page asp language from JScript to VBScript

From http://www.w3schools.com/asp/asp_syntax.asp
VBScript
You can use several scripting languages in ASP. However, the default
scripting language is VBScript:

<html>
<body>
<%
response.write("Hello World!")
%>
</body>
</html>


The example above writes "Hello World!" into the body of the document.

JavaScript
To set JavaScript as the default scripting language for a particular page
you must insert a language specification at the top of the page:

<%@ language="javascript"%>
<html>
<body>
<%
Response.Write("Hello World!")
%>
</body>
</html>

Note: Unlike VBScript - JavaScript is case sensitive. You will have to write
your ASP code with uppercase letters and lowercase letters when the language
requires it.

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------
 
At the top of the page in code view - before anything else add
<%@LANGUAGE="VBSCRIPT"%>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| How to change the default page asp language from JScript to VBScript
|
 
Ask you web host to change it under the FP extensions for your account.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
Disregard my reply, as the setting control the scripting language used when FP creates Form Field
Validation scripts. The default need to be JavaScript unless the site is a intranet where only
Windows and IE browsers are used, therefore you can use VBScript.

The default for Classic ASP pages is VBScript, unless the web host has configured the server
differently.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
Doesn't matter as ASP are run serverside. If VBScript or JavaScript is
used only matters with clientside script.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
It also matter what the default scripting language is set on the server, unless you want to have to
specific the language in each page, etc.

It does matter if the FP extensions are set to use VBScript as the default, then FP will write all
Form Field Validation scripts in VBScript, which is not support in any browser but IE under Windows.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
Back
Top