Every time a user posts something containing <
or >
in a page in my web application, I get this exception thrown.
I don\'t want to go
For ASP.NET 4.0, you can allow markup as input for specific pages instead of the whole site by putting it all in a
element. This will make sure all your other pages are safe. You do NOT need to put ValidateRequest="false"
in your .aspx page.
...
...
It is safer to control this inside your web.config, because you can see at a site level which pages allow markup as input.
You still need to programmatically validate input on pages where request validation is disabled.