Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Using subroutines in asp and global.asa

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  network bottleneck causing performance issues ?  
Author Message
someone24

External


Since: May 06, 2004
Posts: 9



(Msg. 1) Posted: Thu May 06, 2004 3:20 pm
Post subject: Using subroutines in asp and global.asa
Archived from groups: microsoft>public>inetserver>iis (more info?)

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.

 >> Stay informed about: Using subroutines in asp and global.asa 
Back to top
Login to vote
bojo

External


Since: Apr 28, 2004
Posts: 24



(Msg. 2) Posted: Thu May 06, 2004 5:07 pm
Post subject: Re: Using subroutines in asp and global.asa [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

Bojidar Alexandrov

"Cecil Westerhof" <someone.TakeThisOut@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.
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Using subroutines in asp and global.asa 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 2901



(Msg. 3) Posted: Fri May 07, 2004 12:06 am
Post subject: Re: Using subroutines in asp and global.asa [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 DeleteThis @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.
:
:
 >> Stay informed about: Using subroutines in asp and global.asa 
Back to top
Login to vote
someone24

External


Since: May 06, 2004
Posts: 9



(Msg. 4) Posted: Fri May 07, 2004 12:06 am
Post subject: Re: Using subroutines in asp and global.asa [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Ken Schaefer" <kenREMOVE RemoveThis @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.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Using subroutines in asp and global.asa 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
global.asa - I want to receieve an email each time a valid user leave my secure website by logging out, closing the browser, or when the session expired. At the time I do have sendEmail.asp that is called from logOut.asp page when user click on log out button. But...

ASP + Global.asa - Hi Folks, I am knew to IIS and ASP and have tried one of the examples in the IIS5.1 documentation where a Global.asa file is used and a visitcount.asp. Basically what id does is ive you an update of how many users are onlin and have enterd your site....

IIS and Global Variables - Is there a way to define a global variable in IIS that will be available to ASP applications? I am looking for a way to be able to code a complex GLOBAL.ASA but not having to worry about deploying the code from development to production. In other words,...

iis on win xp prof + fso + global.asa - why non my little server web (a windows xp prof) i can't use global.asa and the file system object programming in asp? thk

Global.asa & session_onStart() - Hi all sorry in advance for my bad english and if this topic already had been treated I wrote in global.asa this code to count user session: Sub Application_OnStart Application("WhoOn") = 0 End Sub Sub Application_OnEnd '---nothing ...
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]