Hi,
I am creating a web application which contains a Header (user control). The
header contains some labels which displayes infomation specific to page like
whats this, some page caption etc.
I wish to add some dynamism to this so that page specific label texts can
be modified without recompilation. i think using a XML file will do , but
that too with overhead of opening and closing the file on every page (any
better options so that file can be read once and used till any changes to
file.)
secondly i thought to use web.cofig (may be by making a separate
configuration section), that would work fine so long as it is 5,10 or 20
pages, what if there are 50 or more aspx page, will that effect peformance?
if not will the size of configuration file matter if it grows e.g. 1MB.
Using a DB can also solve my purpose, but i dont want that.
Thanks 2 1150
Hi Tarun:
You can read the XML file into the cache as a single entry (or perhaps
multiple entries, depending on what you have), and then use the
CacheDependency class from System.Web.Caching to monitor the file for
changes. When the file changes, the dependency will kick out the cache
entries.
HTH,
--
Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 8 Nov 2004 19:42:01 -0800, Tarun Upadhyaya
<Ta************@discussions.microsoft.com> wrote: Hi,
I am creating a web application which contains a Header (user control). The header contains some labels which displayes infomation specific to page like whats this, some page caption etc. I wish to add some dynamism to this so that page specific label texts can be modified without recompilation. i think using a XML file will do , but that too with overhead of opening and closing the file on every page (any better options so that file can be read once and used till any changes to file.) secondly i thought to use web.cofig (may be by making a separate configuration section), that would work fine so long as it is 5,10 or 20 pages, what if there are 50 or more aspx page, will that effect peformance? if not will the size of configuration file matter if it grows e.g. 1MB. Using a DB can also solve my purpose, but i dont want that.
Thanks
test
Tarun Upadhyaya <Ta************@discussions.microsoft.com> wrote in message news:<A5**********************************@microso ft.com>... Hi,
I am creating a web application which contains a Header (user control). The header contains some labels which displayes infomation specific to page like whats this, some page caption etc. I wish to add some dynamism to this so that page specific label texts can be modified without recompilation. i think using a XML file will do , but that too with overhead of opening and closing the file on every page (any better options so that file can be read once and used till any changes to file.) secondly i thought to use web.cofig (may be by making a separate configuration section), that would work fine so long as it is 5,10 or 20 pages, what if there are 50 or more aspx page, will that effect peformance? if not will the size of configuration file matter if it grows e.g. 1MB. Using a DB can also solve my purpose, but i dont want that.
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Maxim Khesin |
last post by:
I want to have a config file with my python proggie, satisfying the
following requirements:
1) support key->(value, default)
2) simple and intuitive to read and edit
3) easyly readable into a...
|
by: Fuzzyman |
last post by:
There have been a couple of config file 'systems' announced recently,
that focus on building more powerful and complex configuration files.
ConfigObj is a module to enable you to much more *simply*...
|
by: Mantorok Redgormor |
last post by:
If I am parsing a config file that uses '#' for comments and the
config file itself is 1640 bytes, and the format is VARIABLE=VALUE, is
it recommended to use
a) fgetc (parse a character at a...
|
by: Ritu |
last post by:
How to store connection strings in machine.config?What are the
advantages of storing it in the machine.config file.Can u provide me
with the information regarding accessibility of machine.config...
|
by: Mike Sharp |
last post by:
Hi all,
I have a few questions.
1. Is there a practical maximum size for a web.config file? Point of
diminishing returns? My reason for asking is that I am storing a fairly
large amount of...
|
by: news.microsoft.com |
last post by:
Hi
After conducting a several searches, I wasn't sure where to post this
question. So my apologiesbefore hand for double posting this and possibly
posting to the wrong forum(s).
Okay, I have...
|
by: Giorgio |
last post by:
It seems that the ASP.NET Microsoft team didn't think about this!!
The profilemanager class has the following methods:
- DeleteInactiveProfiles. Enables you to delete all profiles older...
|
by: Keith |
last post by:
Hello all,
I have a C# Windows Forms app. It is in namespace App.GUI. It builds to Nav.exe. I have entered an application level setting using the designer. Its type is string, name is "FOO"...
|
by: Andrus |
last post by:
..NET 2 Winforms application.
How to create new setting and set it default value in userSettings section
of app.config file or overwrite existing setting value ?
I found code below in this list...
|
by: =?Utf-8?B?YzY3NjIyOA==?= |
last post by:
Hi all,
I cut and paste the following code from msdn help page which it just
introduces view and multiview server controls.
Here is what I do:
in vs studio 2005, File --New Web Site, it...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |