when to write <%@ Language="VBScript" %>?

J

John Davis

Since ASP server scripts use VBScript by default, does it mean it is
redundant to put the following in ASP page? Then when do we need to use
this? In client-side VBScript?

<%@ Language="VBScript" %>


Thanks!
John
 
D

Dan Brussee

Since ASP server scripts use VBScript by default, does it mean it is
redundant to put the following in ASP page? Then when do we need to use
this? In client-side VBScript?

<%@ Language="VBScript" %>

Redundant - I suppose. It does do the job of documenting that you are
indeed using VBScript as the language though. I doubt it does much in
the way of performance loss either. One other thing - if you change
the default language for the ASP server, the page would still work if
you had the language statement there.
 
E

Evertjan.

Dan Brussee wrote on 23 aug 2003 in
microsoft.public.inetserver.asp.general:
Redundant - I suppose. It does do the job of documenting that you are
indeed using VBScript as the language though. I doubt it does much in
the way of performance loss either. One other thing - if you change
the default language for the ASP server, the page would still work if
you had the language statement there.

If you CHANGE the asp-system default to jscript, you should put

<%@ Language="VBScript" %>

on top of all your old pages that still are in vbscript.

It takes weeks to change them all [so why change them at all?]
 
S

Stan Scott

John,

It's more precise to say that YOUR server uses VBScript by default. You can
set the default to JavaScript, if you prefer it. Yes, that line IS
redundant on your ASP page. To write client side script, you need this tag:

<script language="vbscript">

though the language is usually optional.

Stan Scott
New York City
 

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

Members online

No members online now.

Forum statistics

Threads
474,083
Messages
2,570,591
Members
47,212
Latest member
RobynWiley

Latest Threads

Top