昨天弄了一下午,总是提示激发了未处理的事件“PageIndexChanging“
修改方法:一要在girdview 后面加 OnPageIndexChanging="GridView1_PageIndexChanging
二要cs页面中添加
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
DataBind();
}
OK问题解决!!