我通过使用 Jquery 的 Input sumbit type(Html tag) onclick 事件做了两个列表框和值交换。我收到错误页面 Eventvalidation=true 所以我在谷歌上搜索并通过使用解决这个问题
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
Page.ClientScript.RegisterForEventValidation(lsttolimo.UniqueID,this.ToString());
base.Render(writer);
}
Run Code Online (Sandbox Code Playgroud)
还没有找到解决方案。比在我使用 UpdatePanel 并在触发器中添加每个控件但仍然找不到解决方案之后