473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Multiple values within appSettings

Hi,

Is it possible to store an array of reserved numbers within appSettings
in the Web.config file? I have very limited XML knowledge but am
guessing I might be able to create some child nodes to loop through
using XPath (if this doesn't offend the DTD).

Grateful of any help

Jan 11 '07 #1
2 3259
"kx10" <ka****@ssha.co.ukwrote in message
news:11*********************@i39g2000hsf.googlegro ups.com...
Is it possible to store an array of reserved numbers within appSettings
in the Web.config file? I have very limited XML knowledge but am
guessing I might be able to create some child nodes to loop through
using XPath (if this doesn't offend the DTD).
Not sure about <appSettingsspecifically, but you most certainly can create
your own custom sections in web.config:
http://www.google.co.uk/search?sourc...ustom+sections

However, you might prefer not to do this, especially if the reserved numbers
are likely to change, because any change to web.config will recycle your
app...

I'd almost certainly use a separate XML file for this, if not an actual
database...
Jan 11 '07 #2
Thank you for your reply,

This is part of a CMS anyway so I will have a read through and way
things up.

Regards

Jan 11 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
7
by: yurps | last post by:
Hello I have a couple of developers working on a web app. They all need to be able to change their local copy of the web.config file to run against their local databases. The copy in VSS needs to...
1
by: Tumurbaatar S. | last post by:
Hi! In old ASP I used Application collection to store configuration settings like ADO connection string. In .NET, it seems, the preferred method is using Web.config file. Yes? If I'm right then...
10
by: Brett | last post by:
If I have many hard coded values such as file paths, file names, timeouts, etc, where is the best place to define them? Meaning, in the case something needs changing for example, rather than...
10
by: ads | last post by:
hi, after binding the dropdownlist to a datasource, ive experience this error "Cannot have multiple items selected in a dropdownlist" after using the code:...
6
by: Mr Flibble | last post by:
Hi all, I've decided to use log4net for my logging/tracing. In the example on the site it shows using main() to setup the root logger and then using the LogManager within your classes to...
1
by: -D- | last post by:
I am trying to use multiple sitemaps within my site as described in the following MSDN article: http://msdn2.microsoft.com/en-us/library/ms178426.aspx I tried adding the following to the...
7
by: =?Utf-8?B?TG9zdEluTUQ=?= | last post by:
Hi All :) I'm converting VB6 using True DBGrid Pro 8.0 to VB2005 using DataGridView. True DBGrid has a MultipleLines property that controls whether individual records span multiple lines. Is...
4
by: Peted | last post by:
hello, i have a app.config file like so <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="rdbUser1Cpu1" value="Cpu1,test"/> </appSettings> </configuration>
0
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.