Library code snippets
Don't explicitly set the page language in ASP
As you probably know, IIS uses VBScript as the default scripting language for
Active Server Pages. Very often, however, we've seen pages where a Web developer
has still explicitly set the scripting language for an ASP page by using the
@Language directive, like this:<%@ Language = VBScript %>
<%
'...
%>
In fact, there's a small but measurable performance degradation on pages where the scripting language is set explicitly, so unless
you have a reason to change the scripting language for an individual page to something other than the default, you're much better off
sticking to the default and omitting the @Language directive. This is particularly important in high-traffic sites. If you want an
entire site to use another scripting language, JavaScript for example, configure IIS accordingly and omit the directive from the individual
pages.
To change the scripting language in IIS, select a site or virtual directory to change, then choose Properties from the Action menu
in the Internet Services Manager. Then, on the Directory tab (Home Directory, if you're configuring an entire site), click the
Configuration button. In the resulting dialog box, click the App Options tab and change the Default ASP Language.
Related articles
Related discussion
-
Binary Studio | software development outsourcing Ukraine
by Soft Industry (5 replies)
-
asp Request.QueryString("dir")
by realmeteo (1 replies)
-
Looking for Senior Web Designer
by lwsmedia (0 replies)
-
Read eMails from Outlook express using ASP
by kumaravelu (1 replies)
-
Help to Call ASP function from onclick event in HTML to pass an array
by vka (0 replies)
Related podcasts
-
Scott Guthrie
Scott catches up with Scott Guthrie in an interview covering Ajax, Asp 2.0, extender controls, CSS adapters and more.
This thread is for discussions of Don't explicitly set the page language in ASP.