Get Web.Config section  
Author Message
Mlee52554





PostPosted: Fri Jun 22 18:19:50 CDT 2007 Top

ASP.Net >> Get Web.Config section 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

Web Programming148  
 
 
shapper





PostPosted: Fri Jun 22 18:19:50 CDT 2007 Top

ASP.Net >> Get Web.Config section On Jun 22, 11:02 pm, shapper <EMail@HideDomain.com> wrote:
> 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