jQuery MiniUI
标题:
.net mvc grid后台参数接收
[打印本页]
作者:
yy0033
时间:
2015-12-2 17:15:14
标题:
.net mvc grid后台参数接收
public ActionResult GetProjectList(MiniUIParams p)
{
try
{
//开始页数
int starIndex = p.PageIndex * p.PageSize + 1;
int endIndex = starIndex + p.PageSize - 1;
……
MiniUIParams 类
public class MiniUIParams
{
public MiniUIParams()
{
//兼容MINIUI
sortField = HttpContext.Current.Request["sortField"];
sortOrder = HttpContext.Current.Request["sortOrder"];
key = HttpContext.Current.Request["key"];
}
#region 属性
/// <summary>
/// 当前页数
/// </summary>
private int pageIndex;
……
sortField 、sortOrder 、key 这三个参数是用什么提交的如果不写构参函数都接收不到
作者:
dforce
时间:
2015-12-2 17:41:36
http://miniui.com/bbs/forum.php? ... &extra=page%3D1
这里有.net mvc的示例
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2