473,387 Members | 1,903 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,387 software developers and data experts.

How to read info from xml in asp.net component ?

I am writing a component like dropdownlist whose content should be read from
xml,and i put the path of the xml file into the web.config fallow as
---------------------------------------------------------------------------------------
<configuration>

<appSettings>
<add key="LocalizedCountryFileDirectory" value="D:\Location" />
</appSettings>
</configuration
---------------------------------------------------------------------------------------

and i read it in this way:
============================================

String filePath =
ConfigurationSettings.AppSettings["LocalizedCountryFileDirectory"];

===============================================
But it sames not to work, can u give me some suggestion to make it work , or
give me some other way to the the path. your answer will be appreciated.
thanx !
Nov 22 '05 #1
0 1187

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

Similar topics

2
by: Kingdom | last post by:
I have a SelectBoxes.asp page that is working with multiple selection dropdown boxes to extract data and total the selection prices. Tom & Bob were kind enough to give me a big help getting this...
1
by: serge calderara | last post by:
Dear all, I need to read certain assembly information from an application. I do not want to add the reference to those assembly inside my application. I have in my application a browse...
1
by: zjut | last post by:
I am writing a component like dropdownlist whose content should be read from xml,and i put the path of the xml file into the web.config fallow as...
1
by: Jonathan Turkanis | last post by:
Dear All, My latest library leads to a lot of internal errors and compiler limit errors (C1001, C1055, C1067) when compiled on VC7.1 with /Zi or /ZI. The library compiles on GCC 3.4.1, Comeau...
2
by: Jim Bancroft | last post by:
The answer's probably "no," but no harm in asking: Is it possible for a serviced component, running in a COM+ server package, to read the AppSettings of an aspx page that calls it? Here's an...
1
by: kpg | last post by:
Hi All, I have an asp.net project that uses an ActiveX component on the server side and I would like the login page to show the version number of this component. The ActiveX component is...
0
by: thecult | last post by:
Hi, this is my first post on this forum, I want to request all possible info and examples about using indy component on C++ Builder6 I have programmed some easy projects with this component but is...
3
by: Girish Kanakagiri | last post by:
Hi, Can anyone please provide me the info or the link for the following Requirements. When to use COM / DCOM How to Develop / Debug COM component What is Component Service
1
by: Sagar | last post by:
I want to write a program, that reads and logs the windows events that happened in a particular folder once every minute, 1. A file was created in the folder. which user created ? 2. A file was...
0
by: wildman | last post by:
Trying to read XML files from SSIS and load into SQL Server. I tested this before and it was working before I placed in a forevery contrainer. also, my simple xml file had to be retyped cause I...
0
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,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
0
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...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
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,...

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.