有潛在危險的 Request.Form 值避免方法
更新時間:2013年12月04日 17:43:34 作者:
在 .net framework 4.0中在 system.web 中加上httpRuntime requestValidationMode="2.0" 這句即可解決,需要的朋友可以了解下
個人感覺在 .net framework 4.0中
最好的解決“ 有潛在危險的 Request.Form 值” 這個問題的方法是
在 system.web 中加上 <httpRuntime requestValidationMode="2.0"/> 這句話
因為4.0的驗證在HTTP的BeginRequest前啟用
<system.web>
<httpRuntime requestValidationMode="2.0" />
</system.web>
最好的解決“ 有潛在危險的 Request.Form 值” 這個問題的方法是
在 system.web 中加上 <httpRuntime requestValidationMode="2.0"/> 這句話
因為4.0的驗證在HTTP的BeginRequest前啟用
復(fù)制代碼 代碼如下:
<system.web>
<httpRuntime requestValidationMode="2.0" />
</system.web>
您可能感興趣的文章:
相關(guān)文章
一步步打造簡單的MVC電商網(wǎng)站BooksStore(3)
這篇文章主要和大家一起一步步打造一個簡單的MVC電商網(wǎng)站,MVC電商網(wǎng)站BooksStore第三篇,具有一定的參考價值,感興趣的小伙伴們可以參考一下2017-04-04ASP.NET中實現(xiàn)導(dǎo)出ppt文件數(shù)據(jù)的實例分享
這篇文章主要介紹了ASP.NET中實現(xiàn)導(dǎo)出ppt文件數(shù)據(jù)的實例分享,實例代碼用C#語言編寫,利用.NET的庫實現(xiàn)起來還是比較簡潔的,需要的朋友可以參考下2016-02-02ASP.NET MVC 3實現(xiàn)訪問統(tǒng)計系統(tǒng)
我們將介紹用ASP.NET MVC 3實現(xiàn)一個訪問統(tǒng)計系統(tǒng),包括統(tǒng)計代碼和Cookie等方面,希望對大家有所幫助。2015-10-10解決Visual Studio 2005 無法顯示設(shè)計視圖的方法
解決Visual Studio 2005 無法顯示設(shè)計視圖的方法...2007-04-04