让asp.net mvc的Action支持jQuery直接提交的javascript对象(3)
来源:未知 责任编辑:责任编辑 发表时间:2014-05-26 11:00 点击:次
{
var subKeys = base.GetKeysFromPrefix(key);
if (subKeys.Count > 0)
{
var firstItem = subKeys.First();
if (subKeys.Count == 1 && firstItem.Value == key + "[]")
{
return GetValue(firstItem.Value, skipValidation);
}
int n;
if( int.TryParse(firstItem.Key, out n) )
{
var indexList = new List<int>(subKeys.Count);
if (subKeys.Keys.All(v =>
{
if (int.TryParse(v, out n))
{
indexList.Add(n);
return true;
}
return false;
}))
{
var arraySize = indexList.Max() + 1;
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 进入详细评论页>>
今日头条
更多>>您可能感兴趣的文章
- .NET简谈互操作(四:基础知识之Dispose非托管内存
- MVC3+Entity Framework 实现投票系统(二)
- 聊聊.net程序设计——浅谈使用VS2010建模拓展(下
- asp.net DataTable和Dataset序列化成Json格式
- .net架构的最后思考(箴言)
- Spring MVC 3.0.5+Spring 3.0.5+MyBatis3.0.4全注
- 使用ASP.NET MVC3+EF+Jquery制作文字直播系统(四
- .NET设计模式:工厂方法模式(Factory Method)[1]
- Web Service学习笔记(4)
- JQuery+Asp.net MVC实现用户名重名查询



