javascript 动态加载DropDownList导致错误
我在页面使用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.