当我提交此网址时:
http://localhost:3333/User/GetAll?_dc=1345288777353&page=1&start=1&limit=25&callback=Ext.data.JsonP.callback2
控制器不会反序列化PagingModel page
。调试器显示page = null
.
public class PagingModel
{
public string start { get { return _start; } set { _start = value; } }
private string _start;
}
public class UserController : Controller
{
[HttpGet]
public JsonResult GetAll(PagingModel page)
{
///////////////////
//page is null.
///////////////////
}
}