我在页面使用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. 

解决方案 »

  1.   

    已经提示错误了
    <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page
      

  2.   

    我文中没得<%@ Page EnableEventValidation="true" %>
      

  3.   

    .aspx 页面第一行
    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default"  EnableEventValidation ="true" %>
      

  4.   

    .aspx 页面第一行如下:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="info.aspx.cs" Inherits="info" %>
    我加了这个EnableEventValidation="true"也会出错
      

  5.   

    EnableEventValidation默认是true,就是因为启用了才会出错,改为false
      

  6.   

    <%@ Page EnableEventValidation="false" … %>解决问题
    录入界面 1.aspx 中通过javascript得到DropDownList值在
    1_submit.aspx中无法得到Request.Form["yslx"],如何解决
      

  7.   

    Refer:
    http://www.cnblogs.com/insus/archive/2013/01/15/2861536.html