Page_load()
string.sql=" ";//一个查询语句
bind(sql);//得到结果
ViewState["sql"]=sql;
DataGird_PageIndexChanged
DtaGird.CurrentPageIndex=e.NewPageIndex;
bind(ViewState["SQL"]);
转载于:https://www.cnblogs.com/xianqingzh/archive/2007/12/20/1006717.html