Error “A potentially dangerous Request.Form value was detected from the client” despite the fixes for ASP.NET MVC 2?
问题 Using ASP.NET 4.0 and MVC 2, I have added these suggested modifications: In the web.config - <httpRuntime requestValidationMode="2.0"/> To the Controller - <ValidateInput(False), AcceptVerbs(HttpVerbs.Post)> To the View Page - <%@ Page ValidateRequest="false" %> I still receive the exception A potentially dangerous Request.Form value was detected from the client I am trying to use the MarkItUp editor in this way - <%= Html.TextAreaFor( model => model.Description,"markitup")%> 回答1: A work