我点完按钮后出现这样的错误页面,一直没有找到原因,请高手指点,解决后马上结贴
Server Error in '/ ' Application.
--------------------------------------------------------------------------------
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.
------解决方案--------------------------------------------------------
问题的原因:
提交的数据有特殊字符;
改成:
enableEventValidation= "false "
------解决方案--------------------------------------------------------
在页面的page 标签上加上这个就好了
enableEventValidation= "false "