Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Re: asp_web_howto digest: May 31, 2002


Message #1 by "The PogoWolf" <pogowolf@h...> on Fri, 31 May 2002 23:18:24 -0500
Ok, here's a issue..  I'm hopeing there's someone out there that knows a way
around this...
 In order to try to keep my code tight, and compact, I'm removed subs and
functions
into include files, that can be used across the board.. the main routine to
'add' the functions is here:

Select Case lcase(Request.QueryString("page"))
  Case "article"
  %><!--#include file="inc/ArticleFunctions.inc" --><%
 Case Else
  %><!--#include file="incs/IndexFunctions.inc" --><%
End Select

From what I think should happen is this..  if page from the Querystring 
article then ONLY load the ArticalFunctions Include
file.. if not.. then load the indexFunctions include..

of course, that was a brain fart..  I know the ASP/HTML will always include
ALL include files before processing...

so here's the Question..is there anyway to have the code ONLY load the
functions that I want?
 instead of needing to group all the seperate includes into ONE BIG (500+
easily) one???




  Return to Index