在.net2.0中新增类HttpRuntimeSection :

如何读取MaxRequestLength的值----(.net2.0) static public double getMaxlength()
 

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


如何读取MaxRequestLength的值----(.net2.0) static public string getMaxlengthByAppSetting()
    }


不知有没有更好的办法??

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2023-01-18
  • 2021-08-19
  • 2021-10-06
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案