C# ValidateRequest Work Around
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 开发者_如何学JAVApages 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?
You can always mark validateRequest=false at page level. So you can try that on the page containing that particular text-box
精彩评论