Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_discuss thread: Is it possible to set up a global area for an ASP application?


Message #1 by "cindy zhou" <czhou@w...> on Thu, 29 Aug 2002 14:04:26
I am building an ASP application. Since I need to use some data (which are 
from database) on several pages, I am considering to put these data in an 
array. I am wondering if there is a global area that I can put the array 
in, so I don't have to access the database every time when I need these 
data.

I know in Java Servlet, there is ServletContext where I can put some 
common data used by one application. I don't know about ASP. Anyone has 
any idea? I would appreciate any reply.

Cindy
Message #2 by silly <xingyunpeng@s...> on Fri, 30 Aug 2002 8:57:37 +0800
cindy zhou=A3=AC

      In asp, there is a build-in object named "Application". It
 has a global scope. Every pape in your asp application can
 access the data stored in it. Of course, the Application object
 can include an array. To know the detailed information about it,
 you can read the help files of IIS5.0 of MicroSoft. If you have
 installed IIS5.0, input "http://localhost/" or
 "http://127.0.0.1/" to your IE and then you will get the help
 files.

=A3=BA
>I am building an ASP application. Since I need to use some data
 (which are 
>from database) on several pages, I am considering to put these
 data in an 
>array. I am wondering if there is a global area that I can put
 the array 
>in, so I don't have to access the database every time when I
 need these 
>data.
>
>I know in Java Servlet, there is ServletContext where I can put
 some 
>common data used by one application. I don't know about ASP.
 Anyone has 
>any idea? I would appreciate any reply.
>
>Cindy

                    

            Yunpeng Xing
            xingyunpeng@s...


Message #3 by "cindy zhou" <czhou@w...> on Fri, 30 Aug 2002 15:21:22
Yunpeng Xing:

Thanks very much for your reply. Yeah, you're right.

But I found for big arrays with many data, it is much better to access 
database than to put the array in the ASP Application object (the former 
one slows down the process incredibly). So finally I did not use the 
application object.

I really appreciate your help.

Cindy



  Return to Index