473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 27004
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Mark | last post by:
Hi, I try to create a file, but failure. My code like is: <% dim fs dim tfile strNum = """1005""" strInfolink = "snum = " & strSiteNum
10
by: Ryan McGeary | last post by:
In a <select> drop-down, the onchange event isn't called when scrolling through the dropdown using the mouse-wheel and when crossing over a new <optgroup>. Using the example below, notice how...
2
by: Maurice Mertens | last post by:
Hi, I'm having some troubles with a .NET application. I have a MDI-parent form and MDI-child forms. When I press a shortcut key in a MDI-child form (i.e. <ALT> + <D>) I get the following...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
5
by: Jeff | last post by:
We are using .Net and the wsdl Utility to generate proxies to consume web services built using the BEA toolset. The data architects on the BEA side create XML schemas with various entities in...
5
by: Memphis Steve | last post by:
Is is possible to control spacing between two lines when using <br />? I would like to be able to adjust the spacing between the two lines in each link below so that the two lines sit snugly on top...
2
by: luftikus143 | last post by:
Hi there, I am building a small WebApp, and using a list to display country values for a specific variable. It should be like Country A 10 Country B 4 Country...
1
by: VaidehiPawar | last post by:
I am a beginner level in xml..my output page does not convert &gt &lt it shows something like this " &lt;b&gt;Location.&lt;/b&gt;&lt;br /&gt; &lt;UL&gt;&lt;LI&gt;Park Central New York " can anyone help? here is my code ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.