我有一个按钮是用来查询数据放在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,我试了但是没用。。
大虾们告诉我这到底是怎么回事啊???
但是数据量一大,就是个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,我试了但是没用。。
大虾们告诉我这到底是怎么回事啊???
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; }
} }