This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I'm using the LightSpeedEntityModelBinder with my MVC 5 site and, for the most part, it's saved me a lot of work! I do, however, need one of my fields to contain HTML markup. Currently, when I run it, I can see the following error in Fiddler: A potentially dangerous Request.Form value was detected from the client I tried adding a System.Web.Mvc.AllowHtml custom attribute to the entity column in the designer, but it's still erroring. I assume this is being ignored by the model binder? How can I accept Html data in my Lightspeed model in MVC? |
|
|
You can fix this by adding the [ValidateInput(false)] attribute on the Post Action when you are expecting HTML as valid input. |
|
|
Hi lbowers You can also try the [AllowHtml] attribute on the property which will then allow HTML and will resolve your issue. Cheers Johan |
|