使用来自 Web 服务的数据在数据绑定详细信息视图中启用分页
- 我使用 VS2008 ASP.Net Web 表单
- 有一个详细信息视图,数据绑定到 Web 服务引用
当前我的 Web 服务在调用时正确显示记录数。但是,当绑定到详细信息视图时,我需要启用分页才能显示相关记录。我如何确保完成此操作?我有以下代码:
Protected Sub DetailsView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewPageEventArgs) Handles DetailsView1.PageIndexChanging
DetailsView1.PageIndex = e.NewPageIndex
'Am i missing out some codes or steps here?
End Sub
- Am using VS2008 ASP.Net Web Forms
- have a detailsview, databound to web service reference
Currently my web service correctly displays the number of records when invoked. However when bound to the detailsview, i need paging to be enabled in order to display the relevant records. How may i ensure this is done? I have the following code:
Protected Sub DetailsView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewPageEventArgs) Handles DetailsView1.PageIndexChanging
DetailsView1.PageIndex = e.NewPageIndex
'Am i missing out some codes or steps here?
End Sub
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你缺少:
I think you're missing: