P
Patrick
I have an ASP site with about 50 ASP files, all of which are currently
including a common "includes.asp" file near the top of the file, responsible
for generating the <HEAD/> section of the HTML
I need to make a change for 3 of those ASP files such that some dynamic HTML
is generated in the <HEAD/> section. I want those dynamic HTML to appear
only for 3 specific ASP files. Is there a more elegant way other than to
1) Dim strOptionalDymanmicHtml1 in includes.asp
2) Initialise strOptionalDymanmicHtml1 to "" in includes.asp
3) In the 3 ASP files which require additional optional dynamic HTML,
initiliase strOptionalDymanmicHtml1 *before* including includes.asp
There is an additional even more tricky problem, I have most file taking
this structure
ASPbeingView.asp including
- config.asp
- includes.asp
config.asp initialise a variable that is displayed in include.asp
However, there is one particular ASP file whose variable need to be
initialised in a different manner (within the ASPbeingView.asp). How could
I achieve this?
I have tried
1) Dim strDefault in config.asp
2) Initialise strDefault in config.asp
3) Dim strTemp in includes.asp
4) strTemp= strDefault in includes.asp
5) in the special ASP which need a different initialisation, I tried:
5.1) strTemp= "some other value",
but this doesn't work
Any thing other than making another copy of includes.asp and getting this
special ASP file to include this seperate includes.asp (which would make
includes.asp not very manageable- i would have to change includes.asp and
includesSpecial.asp for any future changes)!
including a common "includes.asp" file near the top of the file, responsible
for generating the <HEAD/> section of the HTML
I need to make a change for 3 of those ASP files such that some dynamic HTML
is generated in the <HEAD/> section. I want those dynamic HTML to appear
only for 3 specific ASP files. Is there a more elegant way other than to
1) Dim strOptionalDymanmicHtml1 in includes.asp
2) Initialise strOptionalDymanmicHtml1 to "" in includes.asp
3) In the 3 ASP files which require additional optional dynamic HTML,
initiliase strOptionalDymanmicHtml1 *before* including includes.asp
There is an additional even more tricky problem, I have most file taking
this structure
ASPbeingView.asp including
- config.asp
- includes.asp
config.asp initialise a variable that is displayed in include.asp
However, there is one particular ASP file whose variable need to be
initialised in a different manner (within the ASPbeingView.asp). How could
I achieve this?
I have tried
1) Dim strDefault in config.asp
2) Initialise strDefault in config.asp
3) Dim strTemp in includes.asp
4) strTemp= strDefault in includes.asp
5) in the special ASP which need a different initialisation, I tried:
5.1) strTemp= "some other value",
but this doesn't work
Any thing other than making another copy of includes.asp and getting this
special ASP file to include this seperate includes.asp (which would make
includes.asp not very manageable- i would have to change includes.asp and
includesSpecial.asp for any future changes)!