Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page construct advice 1

Status
Not open for further replies.

thompom

Technical User
Dec 4, 2006
395
GB
my current project has one layout asp page
which consists of
-3 column css layout
-include files which contain asp subs
-calls to the above asp subs

my question is because all the code is in include files will this cause a performance issue?
do these pages get loaded all the time - even when not called?
if im not being clear, let me know!
an example of the construct for one column is below

Code:
<!--#include file="sales.asp"-->
<!--#include file="support.asp"-->
<!--#include file="contact.asp"-->

<% 'x_page variable from database

Select Case x_page
'sales.asp
Case "1"
Call sales

'support
Case "2"
Call support

'support
Case "3"
Call contact

End Select%>
 
The answer is yes, there will be a very very small performance decrease, but should be not enough to make any noticable difference.

AND

Yes the code in the include files will get loaded everytime the main page gets loaded.

[monkey][snake] <.
 
thanks for your reply
wanted to check that this is a good way to do my sites
i will probly adopt this structure for my future projects
heres a *
 
It's not a bad way, I use SSI's (server side includes) in a lot of applications. Thanks for the star [smile]

[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top