본문 바로가기

.NET/MVC.NET

potentially dangerous Request.Form value was detected 에러일 경우 MVC에선

폼에 html을 넘겨서 디비에 저장해야 할경우

위의 같은 에러가 납니다. 어떻게 해야할까요 ?

답은 Action Method에 아래의 Attribute 를 삽입해 주면 됩니다.

ValidateInput
(false)