开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜