Asp.net mvc 4 数据表分页不起作用
你好,我有以下代码 jQuery数据表插件(视图) 但在这一步是一个问题 所有值均为零或null。 所以问题是,为什么我看不到任何参数值 datatables通过POST发送此参数Asp.net mvc 4 数据表分页不起作用,asp.net-mvc-4,datatables,Asp.net Mvc 4,Datatables,你好,我有以下代码 jQuery数据表插件(视图) 但在这一步是一个问题 所有值均为零或null。 所以问题是,为什么我看不到任何参数值 datatables通过POST发送此参数 ... &start=5 &length=2 &search[value]= ... &search[regex]=false 谢谢我想出来了。 我更改了类中参数的名称 public class jQueryDataTableParamModel { 对此 /// <
...
&start=5
&length=2
&search[value]=
...
&search[regex]=false
谢谢我想出来了。
我更改了类中参数的名称
public class jQueryDataTableParamModel
{
对此
/// <summary>
/// Number of records that should be shown in table
/// </summary>
public int length { get; set; }
//public int iDisplayLength { get; set; }
/// <summary>
/// First record that should be shown(used for paging)
/// </summary>
public int start { get; set; }
//public int iDisplayStart { get; set; }
//
///表中应显示的记录数
///
公共整数长度{get;set;}
//公共int iDisplayLength{get;set;}
///
///应显示的第一条记录(用于分页)
///
public int start{get;set;}
//公共int iDisplayStart{get;set;}
刚刚使用了param.start和param.length您能否尝试在
“服务器端”:true
之前使用“iDisplayLength”:2
和其他属性,并告诉我。不幸的是,这并没有帮助,而是一个好主意。参数的名称是可选的,还是必须命名为iDisplayLength?非常感谢。
...
&start=5
&length=2
&search[value]=
...
&search[regex]=false
public class jQueryDataTableParamModel
{
/// <summary>
/// Number of records that should be shown in table
/// </summary>
public int length { get; set; }
//public int iDisplayLength { get; set; }
/// <summary>
/// First record that should be shown(used for paging)
/// </summary>
public int start { get; set; }
//public int iDisplayStart { get; set; }