Get Web.Config section

  • Thread starter Thread starter shapper
  • Start date Start date
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
 
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
 
Back
Top