插入html问题
关于插入html问题
别人的.NET是1.1英文版 如果把一些html语句,写入倒文本框里,然后在写入数据库,他就会提示错误, 我的是中文版的1.0插入html就没事,这怎么处理?
Server Error in '/' Application.
--------------------------------------------------------------------------------
A potentially dangerous Request.Form value was detected from the client (tbxaddart="<img src="">").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.
Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (tbxaddart="<img src="">").
Source Error:
这该怎么办?有什么办法,大家帮忙看看