我现在的代码是这样的,在前端没有反应。
if (!string.IsNullOrEmpty(time))
{
if (time == "0")//代表倒序
{
orderList.OrderByDescending(m => m.AddDate);
}
else//正序
{
orderList.OrderBy(m => m.AddDate);
}
}"AddDate": "2015-12-29T18:30:55.327",这个是时间
if (!string.IsNullOrEmpty(time))
{
if (time == "0")//代表倒序
{
orderList.OrderByDescending(m => m.AddDate);
}
else//正序
{
orderList.OrderBy(m => m.AddDate);
}
}"AddDate": "2015-12-29T18:30:55.327",这个是时间
解决方案 »
- 请问vs2005自带的.mdf数据库和sql server2000数据库有什么区别吗?(没分了,大家莫怪)
- 网站发布的问题
- sql语句和和将一个字段的内容替换为另一写内容?
- 关于连接数据库的方式选择???
- DataGrid1 控件 删除问题
- javascript的问题
- 部署在server 2008 iis7.0的WebServices方法调用win32.dll时出错
- 如何动态改变HyperLink的NavigateUrl值
- 有没有办法实现DATAGRID的如下功能?
- 定义一个web控件为什么必须用proected withevents,不用private
- Mvc中如何在浏览器返回上一页时强制刷新页面
- linux apache 怎么设置两个网站共用80端口
这个orderedList才是排序后的集合
{
if (time == "0")//代表倒序
{
orderList= orderList.OrderByDescending(m => m.AddDate).ToList();
}
else//正序
{
orderList= orderList.OrderBy(m => m.AddDate).ToList();
}
}这个和 str.Replace("2","B") 后 str值不变是一个道理