0

我有一个包含大量文本输入、下拉菜单和按钮的页面。输入的所有操作都在服务器端完成。Javascript 只添加了操作文本输入内容的事件侦听器。

当我删除不必要的(变暗)

使用 System.Web.UI

我觉得烦人"Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation=\"true\"/> in configuration or <%@ Page EnableEventValidation=\"true\" %> in a page. ...

当我把它放回去时,问题就消失了。

在此处输入图像描述

删除 javascript 和所有处理Page_Load不会使问题消失。

这有多奇怪?这里发生了什么?

4

1 回答 1

0

原来它是由<asp:ListItem>Big long item with a line break</asp:ListItem>.

Presumably, when the item with the line break was selected, the returned HTML no longer matched the source (since line breaks are converted to a space character).

于 2018-07-16T03:52:19.163 回答