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

T

Trevor L.

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/
----------------------------------------
 
S

Stefan B Rusynko

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
|
 
T

Thomas A. Rowe

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
==============================================
 
J

Jens Peter Karlsen [FP-MVP]

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.
 
T

Thomas A. Rowe

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
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top