我在页面使用javascript 动态加载DropDownList导致错误
case 1:
document.all("yslx").add(new Option("1","1"));
break
case 2:
document.all("yslx").add(new Option("2","2"));
break
case 3:
document.all("yslx").add(new Option("3","3"));
break
错误提示:
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
case 1:
document.all("yslx").add(new Option("1","1"));
break
case 2:
document.all("yslx").add(new Option("2","2"));
break
case 3:
document.all("yslx").add(new Option("3","3"));
break
错误提示:
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
<pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" EnableEventValidation ="true" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="info.aspx.cs" Inherits="info" %>
我加了这个EnableEventValidation="true"也会出错
录入界面 1.aspx 中通过javascript得到DropDownList值在
1_submit.aspx中无法得到Request.Form["yslx"],如何解决
http://www.cnblogs.com/insus/archive/2013/01/15/2861536.html