T
TPS
What is the best way to read values from the web.config file.
I know how to read from the appSettings section, I want to read from other
sections like those listed below.
Thanks,
TPS
<customErrors mode="Off" defaultRedirect="/Pages/customerror.aspx"/>
<authentication mode="Forms">
<forms
slidingExpiration="true"
loginUrl="/pages/login.aspx"
name="dusacookie"
timeout="60"
path="/">
</forms>
</authentication>
<trace
enabled="false"
requestLimit="10"
pageOutput="true"
traceMode="SortByTime"
localOnly="true"
/>
I know how to read from the appSettings section, I want to read from other
sections like those listed below.
Thanks,
TPS
<customErrors mode="Off" defaultRedirect="/Pages/customerror.aspx"/>
<authentication mode="Forms">
<forms
slidingExpiration="true"
loginUrl="/pages/login.aspx"
name="dusacookie"
timeout="60"
path="/">
</forms>
</authentication>
<trace
enabled="false"
requestLimit="10"
pageOutput="true"
traceMode="SortByTime"
localOnly="true"
/>