How to get the location tag value from web.config

B

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top