Some web.config variables accessible through the framework, like
System.Web.SessionState.SessionStateMode, others, such as the
maxRequestLength are not (as far as I know). Therefore, the only solution
you'll have is to parse the web.config and jump to the value with an
xpath....the good news is since the worker process would restart itself
whenever that file changes, you can do it once in Application_Start and
store the value from that point on...
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
<to**@titi.com> wrote in message
news:q5********************************@4ax.com...
Example:
<configuration>
<system.web>
<httpRuntime maxRequestLength="2048" />
</system.web>
</configuration>
I need to kno in my code the value of key maxRequestLength.
Thanks in advance.