Friday, March 2, 2012

allow for the passing of HTML in form fields with ASP.NET MVC projects

This post I found suggests putting this in the system.web section of a Web.config file:

<httpRuntime requestValidationMode="2.0"/>

 
 

...in the name of allowing one to send HTML in form fields in C# 4.0 MVC projects. That said, you will still also need to color methods which return ActionResults that would process such requests with:

[ValidateInput(false)]

No comments:

Post a Comment