摘要:【ASP.NET】錯誤:A potentially dangerous Request.Form value was detected from the client.....
在欄位裡面打語法之後就出現錯誤
A potentially dangerous Request.Form value was detected from the client.......
web.config裡面新增<pages validateRequest="false"></pages>
.aspx也新增了<%@ Page validateRequest="false"%>
都沒用
最後找到還需要在web.config裡面新增<httpRuntime requestValidationMode="2.0" />
參考網址
http://www.dotblogs.com.tw/johnny/archive/2010/03/01/13829.aspx