【发布时间】:2010-11-01 10:03:38
【问题描述】:
我有一个类似/Comments/Search/3 的页面,我在其中搜索并显示线程“3”的所有 cmets。
我正在添加一个排序功能(按日期、作者等)。处理它的最佳方法是什么? /Comments/Search/3/Sort/Author 或 /Comments/Search/3?sort=author ?
如何自动处理查询字符串 sort=author 作为 MVC 中的参数?
谢谢
【问题讨论】:
标签: asp.net-mvc routing query-string