精選文章

bcp大量匯出與匯入資料庫資料方法

--匯出-- bcp "select * from [資料庫名稱].[dbo].[資料表名稱]" queryout 匯出檔案名稱.txt -w -U "使用者帳號" -P "使用者密碼" " "...

2018年12月7日 星期五

如何取得 web.config 裡的 httpRuntime 資訊

問題:
如何取得 web.config 裡的 httpRuntime 資訊
說明:
maxRequestLength設定上傳檔案大小(單位是KB)
解決方法:
HttpRuntimeSection section = (HttpRuntimeSection)ConfigurationManager.GetSection("system.web/httpRuntime");