在asp.net mvc2中使用web編輯器提交表單時,出現以下錯誤: html
A potentially dangerous Request.Form value was detected from the client web
這是因爲內容中包含html標籤形成的。要怎麼解決這個問題呢?錯誤提示自己有解決方法參考連接:http://go.microsoft.com/fwlink/?LinkId=153133 安全
按照這個連接所提示的方法,有時並不能很好的解決。更好的解決方法是: mvc
在web.config中添加以下屬性 asp.net
<system.web> 編輯器
<httpRuntime requestValidationMode="2.0" /> .net
</system.web> orm
聽說這個方法比較安全一點。 htm
本文首發:劍鋒博客 尊重做者,請保留連接。 get