我可以使用过滤器在ASP:直放站? [英] Can I use filter in asp:repeater?

查看:102
本文介绍了我可以使用过滤器在ASP:直放站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用过滤器,中继器,如果是比如何?有可能在asp.net C#?

Can I use filter in repeater if Yes than How? it is possible in asp.net c# ?

在我的项目,我把动态数据过滤的中继器。

In my project I put the filter for dynamic data in repeater.

看到的例子,我想这类型的过滤器中的中继点击此处

see the example i want that type of filter in Repeater Click here

推荐答案

由于您的中继器绑定到数据源,你应该应用过滤器条件吧。例如,如果数据源是由在SqlDataSource psented重新$ P $,请参考<一href=\"http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.sqldatasource.filterex$p$pssion.aspx\"相对=nofollow> SqlDataSource.FilterEx pression物业话题。这似乎是一个客户端过滤。如果是这样的最佳的解决办法是设置SQLDataSource.SelectCommand属性使得它提取所需的距离DB数据。这将减少从数据库服务器转移到网络服务器中的数据的大小,使您的应用程序中工作得更快。

Since your repeater is bound to a DataSource, you should apply the filter condition to it. For example, if the Datasource is represented by the SQLDataSource, please refer to the SqlDataSource.FilterExpression Property topic. This appears to be a client side filtering. If so the best solution would be to set the SQLDataSource.SelectCommand property so that it fetches required data from the DB. This will reduce the data size transferred from the DB Server to the WebServer and make your application work faster.

这篇关于我可以使用过滤器在ASP:直放站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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