根据客户需求,在一个页面上摆放了将近3000个textbox,没办法,客户是上帝啊。
提交之后,出现一个我没有看到过的error,Operation is not valid due to the current state of the object。
老规矩,上google找答案。运气不错,找到了。
只要在web.config里面增加一个设置即可。
<appSettings>
<add key="aspnet:MaxHttpCollectionKeys" value="2001" />
</appSettings>
我设置了4000,因为考虑到页面上还有其他控件呢。