vbscript in html or asp - is one more efficient? (Full Version)

All Forums >> [Community] >> Computer Software and Hardware issues



Message


connipu -> vbscript in html or asp - is one more efficient? (10/18/2005 15:42:23)

Using VBSCRIPT and FrontPage, I created a website consisting of both html and asp pages. However, after reading several articles, I decided to convert one of the html pages to an asp page using option explicit. I tested the page and can not see a difference in terms of performance or results (runs a database query) between the html and asp page. Is one method preferred over the other? Also, various examples, show the vbscript language declaration both ways (see below). Does anyone know what the difference is?
<% @Language = vbscript %> or <SCRIPT LANGUAGE="VBScript">




rdouglass -> RE: vbscript in html or asp - is one more efficient? (10/18/2005 16:02:36)

quote:

I decided to convert one of the html pages to an asp page using option explicit. I tested the page and can not see a difference in terms of performance or results (runs a database query) between the html and asp page.


Hi and Welcome to Outfront

AFAIK you can't access a database without some scripting language (ASP, PHP, etc.) except maybe with JavaScript.

As to the performance, ASP does run slower (altho you won't notice except for large pages) because it needs to be parsed by the script engine first before being sent to the browser.

quote:

<% @Language = vbscript %> or <SCRIPT LANGUAGE="VBScript">


IIRC <% @Language = vbscript %> will always run at the server whereas the second one you can tell it to run at the client or server.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875