gpt4 book ai didi

c# - 如何防止请求中出现 "A potentially dangerous Request.Form"

转载 作者:太空宇宙 更新时间:2023-11-04 14:21:46 25 4
gpt4 key购买 nike

我添加了一个 FreeTextBox我的页面中的控件,它允许用户插入 HTML 标记。好吧,当我发送到服务器时,出现以下错误:

A potentially dangerous Request.Form value was detected from the client (GestisciPagine1_txtTestoPagina="...t homepage<br><br>").

我需要更改哪个选项才能避免这种情况?我只想更改此控件。可能吗?

最佳答案

Which option I need to change to avoid this control ONLY to this control?

您不能对每个控件执行此操作。您需要在 page level or for the entire application 处进行:

<%@ Page Title="Home Page" Language="C#" ValidateRequest="false" %>

关于c# - 如何防止请求中出现 "A potentially dangerous Request.Form",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10000908/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com