如何将分页的数据源设置为数据列表的源 [英] How to set paged datasource as source for datalist

查看:168
本文介绍了如何将分页的数据源设置为数据列表的源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个绑定到对象数据源的数据列表.但是我想分页到该数据列表,所以我做了分页数据源功能,但是我将此数据列表的源设置为该分页数据源,所以发生了一个错误: br/>
DataSource和DataSourceID均在"DataList1"上定义.删除一个定义.那么,如何使数据列表与对象数据源以及页面数据源保持绑定?

在此先感谢您.

Hi ,

I have a datalist that is bounded to object data source.But i want to make paging to this datalist so i made the paged datasource functionality but i am setting the source of this datalist to this paged datasource so an error is happening which is :

Both DataSource and DataSourceID are defined on ''DataList1''. Remove one definition.So how can i make the datalist stay bounded to the object datasource and at the same time to the paged data source ?

Thanks in advance.

推荐答案

为您修复链接

[
Fix link for you

Both DataSource and DataSourceID are defined on ‘GridView1′. Remove one definition. – Bind multiple datasources to a gridview control[^]


这篇关于如何将分页的数据源设置为数据列表的源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆