Forum Moderators: open

Message Too Old, No Replies

Using subroutines and functions

         

Numpty

4:43 pm on Nov 25, 2005 (gmt 0)

10+ Year Member



Just wondering what people's views are on this...

Is it best to put subroutines and functions in the top or bottom of an ASP file? Or does it matter at all?

Thanks

txbakers

4:51 pm on Nov 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I put mine at the top.

carguy84

12:06 am on Nov 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I put them in an include, and insert the include at the top of the page. More often then not I have 1 include with all my functions/subs in it.

Chip-

mrMister

11:35 am on Dec 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In classic ASP, I put them in an include file if they are re-usable or at the top of the page if they are specific to the page in question.