C# ValidateRequest Work Around
-
26-09-2019 - |
Question
I have one textbox in my entire app that I want to be able to accept html. I don't really want to go through all my pages and add Server.HtmlEncode(textbox.Text).
Is there a work around. I'm using C# and asp.net 4.0 and I know the ValidateRequest stuff changed in 4.0 but I don't know if it can solve my problem. Can it?
Solution
You can always mark validateRequest=false at page level. So you can try that on the page containing that particular text-box
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow