Hi
How do i access the settings defined in the web.config during runtime. GetConfig method is used to access the user defined sections. i would like to get the customErrors mode defined in the web.config from a code behind page. how do i achieve this
Thanks
AugustinLoad the Web.Config into a XPathDocument object, and use XPath to
query the node and attribute you need.
Tommy,
"Augustin Prasanna. J" <anonymous@.discussions.microsoft.com> wrote in message news:<FE114EB9-79EC-489A-A87B-771408B3D435@.microsoft.com>...
> Hi,
> How do i access the settings defined in the web.config during runtime. GetConfig method is used to access the user defined sections. i would like to get the customErrors mode defined in the web.config from a code behind page. how do i achieve this?
>
> Thanks,
> Augustin
Hi,
Is there any other way to access the config settings other than parsing the file. would like to know if there are any classes availble in the API that can be used to read the settings.
Thanks,
Augustin
Check out the System.Configuration namespace.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Augustin" <anonymous@.discussions.microsoft.com> wrote in message
news:8A07C04D-2A96-4EC1-B859-8B6E0086ED5E@.microsoft.com...
> Hi,
> Is there any other way to access the config settings other than parsing
the file. would like to know if there are any classes availble in the API
that can be used to read the settings.
> Thanks,
> Augustin
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment