We would like to use certain functions in our web application and in
global.asa. The problem is that in global.asa <script> and </script> has to
be used, but in asp <% en %>. Is there a way around this problem? We do not
like to have two copies of the exact same code.

Re: Using subroutines in asp and global.asa by Ken

Ken
Thu May 06 06:06:01 CDT 2004

You can also use <script></script> in your asp pages if you want.

But aren't you storing all your routines in a central #include file?

Cheers
Ken

"Cecil Westerhof" <someone@microsoft.com> wrote in message
news:e26KGT1MEHA.2716@tk2msftngp13.phx.gbl...
: We would like to use certain functions in our web application and in
: global.asa. The problem is that in global.asa <script> and </script> has
to
: be used, but in asp <% en %>. Is there a way around this problem? We do
not
: like to have two copies of the exact same code.
:
:



Re: Using subroutines in asp and global.asa by Bojidar

Bojidar
Thu May 06 06:07:09 CDT 2004

In your common ASP files use SCRIPT tags to enclose your functions
like <SCRIPT LANGUAGE=VBSCRIPT RUNAT=SERVER> </SCRIPT>

Bojidar Alexandrov

"Cecil Westerhof" <someone@microsoft.com> wrote in message
news:e26KGT1MEHA.2716@tk2msftngp13.phx.gbl...
> We would like to use certain functions in our web application and in
> global.asa. The problem is that in global.asa <script> and </script> has
to
> be used, but in asp <% en %>. Is there a way around this problem? We do
not
> like to have two copies of the exact same code.
>
>



Re: Using subroutines in asp and global.asa by Cecil

Cecil
Thu May 06 07:49:47 CDT 2004

"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:uvVLbo1MEHA.2876@TK2MSFTNGP09.phx.gbl...
> You can also use <script></script> in your asp pages if you want.

I did not know that. Works perfect. Thanks.


> But aren't you storing all your routines in a central #include file?

In principal not. I have a small file with a function that I use for logging
purposes. This I want to use in my normal ASP code an in global.asa. Now I
have to check if everything works okay.