I get error "A potentially dangerous Request.Form value was detected from the client" inspite of the
Posted
by VJ
on Stack Overflow
See other posts from Stack Overflow
or by VJ
Published on 2010-06-02T15:53:45Z
Indexed on
2010/06/02
16:14 UTC
Read the original article
Hit count: 349
I am using ASP.NET 4.0 and MVC 2 I have added these lines which i found in other articles - To the Web-Config -
<httpRuntime requestValidationMode="2.0"/>
To the Controller -
<ValidateInput(False), AcceptVerbs(HttpVerbs.Post)>
To the View Page -
<%@ Page ValidateRequest="false" %>
But still gives me "A potentially dangerous Request.Form value was detected from the client" I am trying to use the Markitp editor in this way -
<%= Html.TextAreaFor( model => model.Description,"markitup")%>
© Stack Overflow or respective owner