473,386 Members | 1,823 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 get the location tag value from web.config

Bob
I have several location sections defined in my web.config file. Below is
the sample of one section:

.....................
<location path="US">
<appSettings>
<add key="fileLocation" value="e:\temp\" />
................
</appSettings>
</location>
......................

In my web services code (asmx.cs file), I need to get the path value (in
this case "US"). I can't seem to find a way to retrieve this. Could anyone
help?

THanks a lot, Bob
Nov 19 '05 #1
1 3041
Check out: http://msdn.microsoft.com/msdnmag/is.../09/ASPColumn/

"Bob" wrote:
I have several location sections defined in my web.config file. Below is
the sample of one section:

.....................
<location path="US">
<appSettings>
<add key="fileLocation" value="e:\temp\" />
................
</appSettings>
</location>
......................

In my web services code (asmx.cs file), I need to get the path value (in
this case "US"). I can't seem to find a way to retrieve this. Could anyone
help?

THanks a lot, Bob

Nov 19 '05 #2

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

Similar topics

8
by: Rim | last post by:
Hi, How can I control the location of the bytecode files? The reason I ask is I want to place the bytecode in a directory different than source code for backup reasons. Our backup system is...
2
by: Vincenzo Davi | last post by:
I have created a dll with several classes in C#. One of the classes references image files in the subdirectories of the bin/Release folder (basically where the dll resides). Now, I want to use...
1
by: Jim Heavey | last post by:
I have a console application which reads the config file to obtain the path of the file where a file is to be written. Everything works fine on my workstation, but now I need to move the...
3
by: serge calderara | last post by:
Dear all, How to configure in config file, the fact that all users get access to the root web folder but only some of them to a restricted forlder Any sample ? thnaks for your help regards...
1
by: MichaƂ Januszczyk | last post by:
How to overcome this: I have a web service on my local machine (Machine A) and a client of it, also running on machine A. I generate a client for this webservice using wsdl.exe. Next, I add the...
3
by: Marc | last post by:
Hi Guys, Is there an easy way to save and reload a controls location somehow? My controls are draggable and I am struggling to find a way to save the controls 'last' location since the mouse...
2
by: =?Utf-8?B?TWFubnkgQ2hvaGFu?= | last post by:
Hello Guys, Just curious over the fact if i can store Image Location in Web.Config and then how can i extract that location in HTML <td style="width:1%" align="left" valign="middle"> <img...
4
by: David Williams | last post by:
I am familiar with creating custom configuration settings and accessing them. However, for a current requirement, I need to control the various settings in my custom configuration section by...
0
by: Darko Bazulj | last post by:
How to add next to web.config <location path="9998886"> <system.web> <compilation tempDirectory="D:\logs\temporary_asp_net_files\9998886" /> </system.web> </location> <location path="444">
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: 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
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
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.