读取MaxRequestLength的值的方法
在.net2.0中新增类HttpRuntimeSection :








但上述方法读到的值却始终是4096,查阅MSDN,得知System.Web.Configuration(.net2.0中新增的类)的属性和方法除了AppSettings之外均只能读取"不可自定义的属性和功能 ",没有更好的办法,只好折衷:用.net1.1的方法解决:


























不知有没有更好的办法??
本文地址:http://www.45fan.com/dnjc/71020.html