.net1.1和2.0运行环境的问题

我公司以前做的网站是VS2003做的,现在要在网站加一个BBS,于是我用VS2005做了一个。
在服务器上我装了2.0的运行环境,装好后发现用2003做的页面运行时出现了如下错误:

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.

在网上找了一些资料,在配置文件web.Config中加 <pages enableEventValidation="false" />,虽然不出错了,
点击提交时浏览器没反映,出现进度条一直等,偶尔可以执行成功!要点很多次才有可能成功一次。

在页面加<%@ Page enableEventValidation="false" %>也不行,vs2003好像不支持这个,vs2005支持。
vs2005做的页面加这个就可以。

请高手帮帮忙,非常感谢。

posted @ 2006-11-10 00:06  TuTu_WWT  阅读(639)  评论(1编辑  收藏  举报