我有一个按钮是用来查询数据放在DATASET里,然后用GRIDVIEW显示出来的,很简单的功能,数据量少的时候没问题。。
但是数据量一大,就是个4000多条数据以后,速度就变的很慢,而且数据出来以后,点任何的按钮都会报这样的错误:
Sys.WebForms.PageRequestManagerServerErrorException:An unknown error ocurred while processing the request on the server.The status code return from the server was:12031
然后就好像死机了的样子。。只能强行关掉浏览器
我在网上查了,说是要把页面的ValidateRequest属性设为False,我试了但是没用。。
大虾们告诉我这到底是怎么回事啊???

解决方案 »

  1.   

    " <httpRuntime maxRequestLength="8192"  />" (effectively allowing 8mb of data transmission, instead of the default 4mb). You'll want to enter this in the System.Web configuration section. 
      

  2.   

    Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server.  The status code returned form the server was:12031.
    This is a typical error when you create propertity via using itself name for get and set. You should do like:[DataObject(true)]
    public class Census
    {
         public Census() { }    private int censusID;    private int contactID;    public int CensusID 
        {
            get { return censusID; }
            set { censusID = value; }
        }
        public int ContactID
        {
            get { return contactID; }
            set { contactID = value; }
        }  }
     
     
     
      

  3.   

    如果你的数据量没有10万左右的量,应该可能是shulei521提出的那个原因。
      

  4.   

    乖乖 项目里你用了microsoft asp.net ajax框架吧
      

  5.   

    对啊,是用了microsoft asp.net ajax框架,怎么了?能告诉我怎么回事嘛???
      

  6.   

    KAO,才发现自己已经回过。两次回复一样,哈。
      

  7.   

    不要用分页控件,数据少可以用用,数据太大的话还是SQL分页快!