C# - 反向中继器订单 [英] C# - Reverse Repeater Order

查看:164
本文介绍了C# - 反向中继器订单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作,用户可以输入更新到系统中,所有的更新都在同一个页面上的Repeater控件显示一个更新页面上。

I am working on an updates page where the user can input updates into the system and all the updates are shown in a repeater control on the same page.

由于他们是目前,正在而第一更新显示在顶部显示在页面底部的最新更新

As they are now, the latest update is displayed on the bottom of the page whilst the first update is displayed on top.

有没有办法扭转这样的顺序,在转发最新的更新总是显示在上面?感谢:)

Is there a way to reverse the order such that the latest updates in the repeater are always displayed on top? Thanks :)

推荐答案

只要改变其中找到全部更新,使其返回的顺序依次为结果的查询。你还没有告诉我们,我们对于该数据的来自哪里什么,但我无法想象这将是难以逆转的顺序。中继器并不需要了解它。

Just change the query which finds "all the updates" so that it returns the results in the descending order. You haven't told us anything about where that data's coming from, but I can't imagine it would be hard to reverse the order. The repeater doesn't need to know about it.

这篇关于C# - 反向中继器订单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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