Make it a function and use the "include" directive to make this function
available in another script.
My personal preference :
- is to include only files containg functions (so that all includes are done
at the beginning and I'm able to call the function later rather than being
forced to include the file where I want to "call" its code)
- is to have a main include file that takes care itself to include what is
needed in most pages (db, ui, or whatever else helper code). The current
page then includes the main include file and then those who stores rarely
used code.
Patrice
--
"Keith" <@.> a écrit dans le message de
news:OO**************@TK2MSFTNGP09.phx.gbl...
I have a block of ASP code (enclosed in <% .. %>).
How can I call that piece of code from another piece of similar code?
And can the code be in any order on the page for it to work?
Thanks