It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center 。
11 年前关闭。
我是asp.net的新手。我正在使用“tinymce”,在那里我使用的是 html 表。单击按钮时会引发错误:
任何人都可以帮我解决这个问题吗?提前致谢。
11 年前关闭。
我是asp.net的新手。我正在使用“tinymce”,在那里我使用的是 html 表。单击按钮时会引发错误:
A potentially dangerous Request.Form value was detected from the client
(txtspecification="<table border="1" ce...").
任何人都可以帮我解决这个问题吗?提前致谢。
最佳答案
您的问题将是您要回发到已打开“请求验证”的 ASP.NET 页面。本质上,tinymce 中的 HTML 将包含尖括号,并且(除其他外)会导致 ASP.NET 的安全检查功能(试图捕获跨站点脚本攻击)。您可以在 ASP.NET 页面中关闭请求验证。
使用 page 指令关闭页面中的请求验证:
<%@ Page validateRequest="false" %>
关于asp.net - 一个潜在危险的请求,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3132360/