Get Web.Config section

S

shapper

Hello,

How can I get the value of an element of a web.config section?

For example:

<A>
<B>
<add name = "Name1" value = "Value1" />
<add name = "Name2" value = "Value2" />
<add name = "Name3" value = "Value3" />
</B>
</A>

I want to get the Value2 given the name of the section "B" and the
name "Name2".

Could you please tell me how to do this?

Thanks,

Miguel
 
S

shapper

Hello,

How can I get the value of an element of a web.config section?

For example:

<A>
<B>
<add name = "Name1" value = "Value1" />
<add name = "Name2" value = "Value2" />
<add name = "Name3" value = "Value3" />
</B>
</A>

I want to get the Value2 given the name of the section "B" and the
name "Name2".

Could you please tell me how to do this?

Thanks,

Miguel

Hi,

No need to answer, I just solved my problem.

Thanks,
Miguel
 

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

Top