如何在dropdownlist选择的值上对转发器进行排序 [英] How to sort repeater on dropdownlist selected value

查看:70
本文介绍了如何在dropdownlist选择的值上对转发器进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在下拉列表选择值(0或1)上对转发器控件(asc = 1或des = 0)进行排序。

我的dropdownlist包含:两个值(最新和旧)

基于下拉列表选择我想要排序我的中继器



谢谢

解决方案

简单的方法是根据onChange事件中下拉值重新绑定转发器。



这样的东西会有所帮助



具有分页和排序功能的中继器 [ ^ ]

i want to sort my repeater control (asc=1 or des = 0) on dropdownlist selection value (0 or 1).
my dropdownlist Contains: two values (latest and old)
based on dropdownlist selection i want sort my repeater

thanks

解决方案

The simple way is to rebind the repeater based of the value of the drop down in the onChange event.

Something like this will help

Repeater with Paging and Sorting Features[^]


这篇关于如何在dropdownlist选择的值上对转发器进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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