469,303 Members | 1,980 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,303 developers. It's quick & easy.

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

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
Jul 19 '05 #1
3 26402
On Sat, 23 Aug 2003 00:48:48 -0700, "John Davis"
<jr*******@hotmail.com> wrote:
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.

Jul 19 '05 #2
Dan Brussee wrote on 23 aug 2003 in
microsoft.public.inetserver.asp.general:
On Sat, 23 Aug 2003 00:48:48 -0700, "John Davis"
<jr*******@hotmail.com> wrote:
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.


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?]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3
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

"John Davis" <jr*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Maurice Mertens | last post: by
11 posts views Thread by Les Paul | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.