那一抹夕阳
解决方法:
页面中设置ValidateRequest="false",asp.net 4.0需要在web.config文件中配置如下结点
<configuration> <system.web> <httpRuntime requestValidationMode="2.0">
如果是asp.net mvc
需要在对应的Controller Action上增加[ValidateInput(false)] 特性
Copyright @ 2024 番茄的梦想 Powered by .NET 8.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster