Hi
Well i tell you the situation ,
i am having the configsection settings like below.
what i need to do is to display the sections automatically when i add
new section name.
after this the all section settings coresponding to section name will
be displayed.
I am able to display the section settings by statically giving it name
in my code behind ,
right now i am using the section name statically as
"Settings-en-gb" ,but i need to display all the sections automatically.
Like it pickup the section name one by one and shows its corresponding
settings.
just tell me how i can track all section name counts and there names.
*************** ********Code i am using to Display******** ********
Dim MyNameValueColl ection As Specialized.Nam eValueCollectio n
MyNameValueColl ection =
ConfigurationSe ttings.GetConfi g("Settings-en-gb")
Dim test(MyNameValu eCollection.Cou nt) As String
If MyNameValueColl ection.Count > 0 Then
test = MyNameValueColl ection.AllKeys
End If
Dim i As Integer
Dim table As String
table = "<Table border=1>"
For i = 0 To MyNameValueColl ection.Count - 1
table = table + "<tr><td>" + test(i) + " </td><td>" +
MyNameValueColl ection(test(i)) + "</td></tr>"
Next
table = table + "</table>"
Label1.Text = table
*************** **My Web.Config Settings******* *************** ***
<configSections >
<section name="Settings-en-gb"
type="System.Co nfiguration.Nam eValueSectionHa ndler,system,Ve rsion=1.0.3300. *0,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9,Custom=null" />
<section name="Settings-en-in"
type="System.Co nfiguration.Nam eValueSectionHa ndler,system,Ve rsion=1.0.3300. *0,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9,Custom=null" />
</configSections>
<Settings-en-gb>
<add key="ROOT_DIREC TORY" value="" />
<add key="EXT_TO_INC LUDE" value="*.aspx" />
<add key="FILENAME_T O_EXCLUDE" value="ABC.ASPX " />
<add key="DIRECTORYN AME_TO_EXCLUDE" value="Utilitie s" />
<add key="XML_FILENA ME" value="SITEMAP-EN-GB.XML" />
<add key="XML_FILE_P ATH" value="C:\" />
<add key="URL_PREFIX " value="http://visitbritain.co m/vb3- en-gb/" />
<add key="DEFAULT_CH ANGE_FREQUENCY" value="always" />
<add key="DEFAULT_PR IORITY" value="0.8" />
</Settings-en-gb>
<Settings-en-in>
<add key="ROOT_DIREC TORY" value="" />
<add key="EXT_TO_INC LUDE" value="*.aspx" />
<add key="FILENAME_T O_EXCLUDE" value="ABC.ASPX " />
<add key="DIRECTORYN AME_TO_EXCLUDE" value="Utilitie s" />
<add key="XML_FILENA ME" value="SITEMAP-EN-GB.XML" />
<add key="XML_FILE_P ATH" value="C:\" />
<add key="URL_PREFIX " value="http://visitbritain.co m/vb3-en-gb/" />
<add key="DEFAULT_CH ANGE_FREQUENCY" value="always" />
<add key="DEFAULT_PR IORITY" value="0.8" />
</Settings-en-in> 0 1748 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dan R Brown |
last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to
break up this form into several "tabbed" sections, I break up the form using <div>
tags. Each <div style="display:none"> can be displayed by setting the style attribute
to "display:", or hidden with "display:none". This gives the illusion that the person
filling out the form is switching from page to page...without the overhead of extra
hits on the server,...
|
by: Robert |
last post by:
I have an application with custom configuration sections in it's app.config
file.
Here's a shortened excerpt:
<monitors>
<monitor
type="SystemMonitor.Monitors.NetworkAvailabilityMonitor,SystemMonitor">
<notifiers>
<notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,SystemMonitor" />
|
by: Marauderz |
last post by:
Hi guys, having a weird problem here. I've declare a custom config section
in my web.config file with the following lines
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="ClientCaps"
type="System.Configuration.DictionarySectionHandler,System" />
|
by: Paloma GarcÃa |
last post by:
Dear all,
I have created personalized configuration sections in my web project
following the instructions described in this page
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconDeclaringCustomConfigurationSections.asp
The problem is that I using the same code and I get the error "Object
reference not set to an instance of an object" in the line where I try to
read the first parameter (in the page...
|
by: yatharth |
last post by:
Hi
Well i tell you the situation ,
i am having the configsection settings like below.
what i need to do is to display the sections automatically when i add
new section name.
after this the all section settings coresponding to section name will
| |
by: mlafarlett |
last post by:
Geez...seems like i've compared every friggin character...works n this
programA but not n programB. I have a config file with multiple
sections and when trying to read each section, it works great in one
program and not in another. I basically copied and pasted the config
file as well as the section handlers , changed references from programA
to programB but on every section in programB I get like "Could not
create...
|
by: DarthContinent |
last post by:
I have multiple websites running under Windows 2003 using IIS and ASP
..NET. I'd like to be able to take multiple Web.config files and parse
sections of them out for display in a datagrid or to place in some
other type of collection object.
Could someone please link me with samples that illustrate how to
extract sections in this manner?
I'd like to know both how to extract the info straight from the
Web.config file itself, as well as...
|
by: Milsnips |
last post by:
Hi all.
i'm tryng to implement the Rewrite.NET url rewritining functionality into a
test project i've created, however i am hitting a problem at this line
(direct from the web example):
System.Collections.Specialized.NameValueCollection SectionIndex =
(System.Collections.Specialized.NameValueCollection)System.Configuration.ConfigurationSettings.GetConfig("Rewrite.NET/Index");
The value always returns me null, and just to check it was...
|
by: Andrea Anastasescu |
last post by:
Hi everybody,
Inside the web.config of my application I have some custom sections. I have
my own handlers for these sections, and their content is in external files.
My problem is that ConfigurationManager do not detects that these external
files are changed.
In case that I "touch" the web.config file, just save it or something, the
content of the files are re-read.
Is there any possibility to make ConfigurationManager detect that these...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |