Wednesday, 11 November 2015

A potentially dangerous Request.Form value was detected from the client. MVC

From MVC3 onwards if you see this message

A potentially dangerous Request.Form value was detected from the clien

you can fix it by decorating the model propery with this:

[AllowHtml]

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!