views:

1540

answers:

4

Hi I have a form at which I use ckeditor. This form worked fine but now doesn't work in Asp.Net 4. Any suggestions? I have ValidateRequest="false" directive.

+15  A: 

Found solution at the error page :) Just needed to add requestValidationMode="2.0"

<system.web>
    <compilation debug="true" targetFramework="4.0" />
    <httpRuntime requestValidationMode="2.0" />
</system.web>
HasanGursoy
+1 Very helpful, thanks :-)
Steffen
that's awesome, but does anybody know of a way to set this per page? Also how do I put this in web.config so that it would still work with .NET 2?
MK
@MK: I don't think there is a page directive for this setting. You can not make it run on .net 2. I don't think that would be necessary. Because you can just build an web app targeting only one framework version. Just copy this line to .net 4 web.config which needs it...
HasanGursoy
A: 

There's short article about rendering validation controls properly if anyone cares:

Error Validation in .NET 4

Ian
A: 

Excellent, my problem is solved by your comment. thanks

Hash