473,386 Members | 1,795 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,386 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 1186

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
jinu1996
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...

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.