简体   繁体   English

asp.net DetailsView查看程序化数据访问

[英]asp.net DetailsView programmatic data access

How to programmatically browse through the pages of a data-bound DetailsView? 如何以编程方式浏览数据绑定的DetailsView的页面?

I am using this code: 我正在使用此代码:

protected void DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e)
        {
            DetailsView1.PageIndex = e.NewPageIndex;
        }

The page is changing. 页面正在更改。 But the problem is, the next record item is not showing up. 但是问题是,下一个记录项没有显示。 The old item is still visible on the new page. 旧项目仍在新页面上可见。

您必须重新绑定您的详细信息视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM