fmbma
Posts: 58
|
Posted: 04/16/2004, 3:32 AM |
|
In asp, where should I put a function I want to make available to all pages? I'm assuming in common.asp, but are there any issues with it being overwritten?
thanks
|
|
|
Robert Rodgers
|
Posted: 04/16/2004, 3:51 AM |
|
It won't be overwritten as long as you start in a white band. But I have a page of my own functions. I just include it at
the top of the common.asp file. Then I can easily reuse them in more than one project.
rob
"fmbma" <fmbma@forum.codecharge> wrote in messagenews:6407fb6391765a@news.codecharge.com...
> In asp, where should I put a function I want to make available to all pages?
> I'm assuming in common.asp, but are there any issues with it being
> overwritten?
>
> thanks
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
peterr
Posts: 5971
|
Posted: 04/16/2004, 10:25 AM |
|
I usually put custom functions at the end of Common.asp , just before "%>". They will not be overwritten, as long as you place them within the white-background areas of the code. The grey backrgound areas indicate the generated code, which is best left unchanged.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
fmbma
Posts: 58
|
Posted: 04/16/2004, 11:54 AM |
|
thanks!!!
|
|
|
|