代码是这几句,
protected void GridView1_PageIndexChanged(object sender, EventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
这行代码在vs08中不会出现自动提示,是自己打上去的,GridView1.PageIndex = e.NewPageIndex;运行时也是这行出问题