I have some properties data to be loaded for the site use, such as:
website url, admin email, mailing component to use, etc. for my ASP
website. They will be stored in a database, or I also consider XML and/
or .inc text file.
What is the best practice to load them once when user starts website
browsing and keep them until user leaves the site?
I considered Global.asa, but I know there must be one per application.
I may have 2 same applications or more under different directories
thus more than 1 asa will be used.
Should I use "session" or "application" objects and how to use them
for my case?
Should I consider XML or text file instead of database? How faster are
they if I consider under 10 properties to store?
Thanks for any advice. 5 2302
"vunet" <vu******@gmail.comwrote in message
news:5c**********************************@f36g2000 hsa.googlegroups.com...
I have some properties data to be loaded for the site use, such as:
website url, admin email, mailing component to use, etc. for my ASP
website. They will be stored in a database, or I also consider XML and/
or .inc text file.
What is the best practice to load them once when user starts website
browsing and keep them until user leaves the site?
I considered Global.asa, but I know there must be one per application.
I may have 2 same applications or more under different directories
thus more than 1 asa will be used.
Should I use "session" or "application" objects and how to use them
for my case?
Should I consider XML or text file instead of database? How faster are
they if I consider under 10 properties to store?
If you have multiple applications that wish to share settings then its best
to store them in a DB.
Load them into the application object on application start using the
Global.asa.
--
Anthony Jones - MVP ASP/ASP.NET
On Jul 22, 8:03*am, "Anthony Jones" <A...@yadayadayada.comwrote:
"vunet" <vunet...@gmail.comwrote in message
news:5c**********************************@f36g2000 hsa.googlegroups.com...
I have some properties data to be loaded for the site use, such as:
website url, admin email, mailing component to use, etc. for my ASP
website. They will be stored in a database, or I also consider XML and/
or .inc text file.
What is the best practice to load them once when user starts website
browsing and keep them until user leaves the site?
I considered Global.asa, but I know there must be one per application.
I may have 2 same applications or more under different directories
thus more than 1 asa will be used.
Should I use "session" or "application" objects and how to use them
for my case?
Should I consider XML or text file instead of database? How faster are
they if I consider under 10 properties to store?
If you have multiple applications that wish to share settings then its best
to store them in a DB.
Load them into the application object on application start using the
Global.asa.
--
Anthony Jones - MVP ASP/ASP.NET
If I use my app on a few other servers, then is it true I cannot use
Global.asa without its modification? In other words, can I pack my app
with Global.asa and distribute to whatever I want? I thought I cannot.
Thanks.
vunet wrote:
On Jul 22, 8:03 am, "Anthony Jones" <A...@yadayadayada.comwrote:
>"vunet" <vunet...@gmail.comwrote in message
news:5c**********************************@f36g2000 hsa.googlegroups.com...
>>
>>I have some properties data to be loaded for the site use, such as: website url, admin email, mailing component to use, etc. for my ASP website. They will be stored in a database, or I also consider XML and/ or .inc text file. What is the best practice to load them once when user starts website browsing and keep them until user leaves the site? I considered Global.asa, but I know there must be one per application. I may have 2 same applications or more under different directories thus more than 1 asa will be used. Should I use "session" or "application" objects and how to use them for my case? Should I consider XML or text file instead of database? How faster are they if I consider under 10 properties to store?
If you have multiple applications that wish to share settings then its best to store them in a DB.
Load them into the application object on application start using the Global.asa.
-- Anthony Jones - MVP ASP/ASP.NET
If I use my app on a few other servers, then is it true I cannot use
Global.asa without its modification? In other words, can I pack my app
with Global.asa and distribute to whatever I want? I thought I cannot.
I do it all the time. What gave you the idea that you couldn't?
You cannot access another application's global.asa, but you can
certainly copy the file into another application ...
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
On Jul 22, 10:23*am, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
vunet wrote:
On Jul 22, 8:03 am, "Anthony Jones" <A...@yadayadayada.comwrote:
"vunet" <vunet...@gmail.comwrote in message
news:5c**********************************@f36g2000 hsa.googlegroups.com...
>I have some properties data to be loaded for the site use, such as: website url, admin email, mailing component to use, etc. for my ASP website. They will be stored in a database, or I also consider XML and/ or .inc text file. What is the best practice to load them once when user starts website browsing and keep them until user leaves the site? I considered Global.asa, but I know there must be one per application. I may have 2 same applications or more under different directories thus more than 1 asa will be used. Should I use "session" or "application" objects and how to use them for my case? Should I consider XML or text file instead of database? How faster are they if I consider under 10 properties to store?
If you have multiple applications that wish to share settings then
its best to store them in a DB.
Load them into the application object on application start using the
Global.asa.
--
Anthony Jones - MVP ASP/ASP.NET
If I use my app on a few other servers, then is it true I cannot use
Global.asa without its modification? In other words, can I pack my app
with Global.asa and distribute to whatever I want? I thought I cannot.
I do it all the time. What gave you the idea that you couldn't?
You cannot access another application's global.asa, but you can
certainly copy the file into another application ...
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
So if I understand this should be possible:
my web site is under folder "mysite" and it contains Global.asa as in
"mysite/Global.asa". I make 2 copies of my site like this:
root/website1/mysite/
and
root/website2/mysite/
where Global.asa will be under each mysite folder. Is this a correct
idea? Please confirm. But then how does the server know where to find
Global.asa? Especially if I have no access to web server admin rights?
Thanks
vunet wrote:
On Jul 22, 10:23 am, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
>vunet wrote:
>>On Jul 22, 8:03 am, "Anthony Jones" <A...@yadayadayada.comwrote: "vunet" <vunet...@gmail.comwrote in message
news:5c**********************************@f36g2000 hsa.googlegroups.com...
>>
>>If I use my app on a few other servers, then is it true I cannot use Global.asa without its modification? In other words, can I pack my app with Global.asa and distribute to whatever I want? I thought I cannot.
I do it all the time. What gave you the idea that you couldn't? You cannot access another application's global.asa, but you can certainly copy the file into another application ...
So if I understand this should be possible:
my web site is under folder "mysite" and it contains Global.asa as in
"mysite/Global.asa". I make 2 copies of my site like this:
root/website1/mysite/
and
root/website2/mysite/
where Global.asa will be under each mysite folder. Is this a correct
idea? Please confirm. But then how does the server know where to find
Global.asa? Especially if I have no access to web server admin rights?
Thanks
Sure, why not? As long as each one is defined as an application using
IIS Manager, there is not issue here.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Max |
last post by:
This is the best method I've found to store and load settings from database.
I load the settings once at start as public variables. The method can be
called easily anytime you want to load the new...
|
by: Thom Little |
last post by:
My first ASP.NET application on Visual Studio 2005 and .NET Framework 2.0
The application compiles and executes correctly on the development machine.
I then publish it to an empty directory on...
|
by: Michael Matteson |
last post by:
I have two classes. Class
A and Class B. I give class A 5 properties
int prop1(){}
int prop2(){}
int prop3(){}
int prop4(){}
classB prop5(){}
what i would like to do is to create a 5th...
|
by: evantay |
last post by:
I'm using ASP.NET 2.0 with VS.NET 2005. I'm trying to access properties
from my master pages within a page that inherits from that master page (a
child page). However the values are always null....
|
by: MMAS |
last post by:
I've seen a similar post about this problem but still cannot find an
automated solution. Below is the code I'm using to create a website
(for IIS 6.0) via C#. once the site is created, it will not...
|
by: David C. Ullrich |
last post by:
Having a hard time phrasing this in the form
of a question...
The other day I saw a thread where someone asked
about overrideable properties and nobody offered
the advice that properties are...
|
by: Michael Bray |
last post by:
With the recent release of EF I've decided to dig into it a bit more than I
did before... the question I'm specifically interested in, but haven't
been able to find a resource to answer it is......
|
by: =?Utf-8?B?bXVzb3NkZXY=?= |
last post by:
Hi guys
Bit of a generalist question, but I'm using ASP.net as my development
platform.
Basically, I have a website (an independent music store) and as well as the
normal functionality, I'd...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |