Default, .NET has a security to deny user to input HTML text, ex: '<html>'
. When submitting a form request which there is an input contains a HTML text, a yellow error page is displayed with error content "A potentially dangerous Request.Form value was detected from the client ...".
I have a question about this problem. Can I configure .NET set ModelState.IsValid = false instead of showing a yellow page? Or is there a solution to solve my problem? I hate yellow page and I want user to know the reason of error as "HTML text is forbidden on field name XXX"
Thanks.