|
| |
|
|
connipu
Posts: 17 Joined: 10/18/2005 Status: offline
|
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
Posts: 9186 From: Biddeford, ME USA Status: online
|
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.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|