开发者

C# ValidateRequest Work Around

开发者 https://www.devze.com 2023-01-21 14:33 出处:网络
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).

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

0

精彩评论

暂无评论...
验证码 换一张
取 消