螞蟻空間

螞蟻空間

导航

页面修改成套用MasterPage时遇到Invalid postback or callback argument的错误

这两天修改以前页面的时候,同时套上MasterPage,结果在几个页面上却出现了以下错误

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" ,但是,就我目前遇到的情况应该不是这样

仔细看了一下aspx页面的代码,原来是粗心所致,在去掉原页面的<Page>,<Body>等的时候在文件末端还留下了一个</form>没删掉.就造成了以上问题.



所以,不能粗心啊!!!!

posted on 2008-05-02 15:53  螞蟻  阅读(701)  评论(0编辑  收藏  举报