ValidateInput Attribute Doesn't Seem To Work in ASP.NET MVC

Posted by JC Grubbs on Stack Overflow See other posts from Stack Overflow or by JC Grubbs
Published on 2009-09-22T17:06:27Z Indexed on 2010/04/20 3:53 UTC
Read the original article Hit count: 257

Filed under:
|

I'm trying to get around the "potentially dangerous Request.Form value" error and I'm having no luck. Yes, yes, I've read all the other StackOverflow related questions and none of them seem to get me closer to an answer. I am using [ValidateInput(false)] on all related controller actions...and I've checked many times. I'm using ValidateRequest='false' in all the related ASPX views.

I am using ASP.NET MVC 2 Preview 1, but I don't think that's an issue since the error is being generated lower in the framework; Page.ProcessRequest to be exact. I can't see anything I'm doing wrong, I even set <page validateRequest='false'> in the web.config and that didn't solve it either.

HELP!!!!!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc