在之前的练习中一直是直接传递的Model到后台或是单个数据到后台,今天在使用中遇到了点问题,不能使用Model传递到后台,但又要实现多个数据到后台,实验了多次有了以下的解决方案,给自己留个笔记。

功能是这样的:点击编辑的时候把表格这一行的数据获取到然后传递到后台

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA+IAAABTCAIAAACUBipRAAAaaklEQVR4nO2dvWvjShfG3/9pKlWudptNkzRLipDiwgWDYWEhRbjFxYVx421SpsltksqVK1dJkzTBiOAiGBwIBAwCgwMBgcGF3sK2LGs+JetYHs3zK4I9Gp2Z8yHpsTxy/jcYDEKXcM3fsnAtzvAXUIA4Ww3SB0hBgVWbwWCwWCz+NxgMIpdwzd+ycC3O8BdQgDhbDdIHSEGBVRvIdECIa3GGv4ACxNlqkD5ACgqs2kCmA0JcizP8BRQgzlaD9AFSUGDVBjIdEOJanOEvoABxthqkD5CCAqs2kOmAENfiDH8BBYiz1SB9gBQUWLWBTAeEuBZn+AsoQJytBukDpJgU2Hw+H4/Hvu8PLMH3/fF4PJ/PXXBHm1/IdECFa3GGv4ACxNlqkD5AirbA5vP5y8tLEASLxWI/U9qdxWIRBIHv+7y0rZg7WiDTASGuxRn+AgoQZ6tB+gAp2gIbj8dBEOxnMsUSBMF4PE41VswdLZDpgBDX4gx/AQWIs9UgfYAUbYH5vm/Rjecki8XC9/1UY8Xc0QKZDghxLc7wF1CAOFsN0gdI0RaY1RXIT75i7pjsApkOqHAtzvAXUIA4Ww3SB0iBTLcIyHRTXPO3LFyLM/wFFCDOVoP0AVIg0y0CMt0U1/wtC9fiDH8BBYiz1SB9gBTIdIuATDfFNX/LwrU4Z/KXMZZ764HgWn7LwjzO2rKJOyR7mu+1+wSyYsWBoAaHCSCFSKbzh57sYCQ9SMuV6YVfpiHTTXHN37JwLc6Q6YCCYutq2YH/qzBlqOm11mJSb+PGHB4dPjhMACl7k+kmjebHtSHUMl14UkpujbhzV2prJkhk+rDDh50x1uhNs451QGgiNR3cNL57jLHaye+bQcLR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LpFQKab4pq/ZeFanOEvoABxthqkD5ACmW4RkOmmuOZvWbgWZ/gLKECcrQbpA6RAplsEZLoprvlbFq7FGf4CChBnq0H6ACnaAvN9f7FYlC1Q87BYLHzfr7Y7JvmFTAdUuBZn+AsoQJytBukDpGgLbDQaBUFQtkbNw2QyGY1G1XbHJL+Q6YAK1+IMfwEFiLPVIH2AFG2BfX5++r4fBIFFN6EXi8VkMvF9//Pzs9rumOQXMh1Q4Vqc4S+gAHG2GqQPkGJSYJ+fn6PRyPf9gSX4vj8ajWSitmLuaPMLmQ6ocC3O8BdQgDhbDdIHSEGBVRvIdECIa3GGv4ACxNlqkD5ACgqs2kCmA0JcizP8BRQgzlaD9AFSUGDVBjIdEOJanOEvoABxthqkD5CCAqs2kOmAENfiDH8BBYiz1SB9gBQUWLXZyPSyf69mr7jmb1m4Fmf4CyhAnK0G6QOkoMCqDWQ6IMS1OMNfQAHibDVIHyAFBVZtljL9/8hiIKz//wNDAAAAAElFTkSuQmCC" alt="" />

这里由于是Kendo Grid的按钮 不好进行操作,我自定义了编辑按钮

cmd.Custom("编辑").HtmlAttributes(new { data_bind_operation="test"});

Js代码如下:

<script type="text/javascript">
$(function () {
$(document).on("click", "a[data-bind-operation='test']", function (e) {
e.preventDefault();
var $this = $(this);
var dataItem;
dataItem= $("#PersonalListGrid").data("kendoGrid").dataItem($this.closest("tr"));
$.ajax({
type: "post",
url: "/Home/PersonalList_Update",
dataType:"json",
data: { "dataItem": JSON.stringify(dataItem)},
success: function (result) {
if (result.success) {
$("#PersonalListGrid").data("kendoGrid").dataSource.read();
}
else {
alert(result.message);
}
}
});
});
});
</script>

注意:这里取得的数据为字符串数组

在控制器中代码如下:

[HttpPost]
public ActionResult PersonalList_Update([DataSourceRequest]DataSourceRequest request,string[] dataItem)
{
var list = Newtonsoft.Json.JsonConvert.DeserializeObject<PersonalInfoModel>(dataItem[0]);
if (_userServices.EditPersonalInfoById(list))
{
return Json(new { success = true, message = "Success!" });
}
return Json(new { success=false,message="Failure!"});
}

Newtonsoft.Json.JsonConvert是一个微软的免费json转换工具。

Newtonsoft.Json 是.NET 下开源的json格式序列号和反序列化的类库。

(需引用Newtonsoft.Json.dll 文件)

这样就可以把多个数据通过json格式传递到后台了.

[Asp.net mvc]Asp.net mvc 使用Json传递数据的更多相关文章

  1. ASP.NET MVC 5 学习教程:控制器传递数据给视图

    原文 ASP.NET MVC 5 学习教程:控制器传递数据给视图 起飞网 ASP.NET MVC 5 学习教程目录: 添加控制器 添加视图 修改视图和布局页 控制器传递数据给视图 添加模型 创建连接字 ...

  2. android跟服务器使用json传递数据

    最近在做项目,使用了json传递数据,把服务器对象转换成json字符串返回,android使用gson包解析json字符串变成对象. 1.服务器代码编写,我这边是在servlet里面 Peron pe ...

  3. Json传递数据两种方式(json大全)

    1.Json传递数据两种方式(json大全)----------------------------字符串 var list1 = ["number","name&quo ...

  4. 【ASP.NET MVC】View与Controller之间传递数据

    1   概述 本篇文章主要从操作上简要分析Controller<=>View之间相互传值,关于页面之间传值,如果感兴趣,可参考我另外一篇文章ASP.NET 页面之间传值的几种方式 . Co ...

  5. MVC中前台如何向后台传递数据------$.get(),$post(),$ajax(),$.getJSON()总结

    一.引言 MVC中view向controller传递数据的时候真心是一个挺让人头疼的一件事情.因为原理不是很懂只看一写Dome,按葫芦画瓢只能理解三分吧. 二.解读Jquery个Ajax函数 $.ge ...

  6. ASP.NET MVC 学习2、从Controller传递数据到View

      参考:http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/adding-a-view 一,Control ...

  7. Spring MVC全局异常后返回JSON异常数据

    问题: 当前项目是作为手机APP后台支持,使用spring mvc + mybaits + shiro进行开发.后台服务与手机端交互是发送JSON数据.如果后台发生异常,会直接返回异常页面,显示异常内 ...

  8. 【MVC】MvcPager分页及边界传递数据示例

    using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.We ...

  9. MVC bootstrap 实现 bootstrap table 左右传递数据

    源码: @{ ViewBag.Title = "Index"; } @using BC.Platform.UPMS.Models; <!DOCTYPE html> &l ...

随机推荐

  1. postman—集成到jenkins

    前言 Jenkins是一个开源软件项目,是基于Java开发的一种持续集成工具,用于监控持续重复的工作,旨在提供一个开放易用的软件平台,使软件的持续集成变成可能. 将postman导出的脚本,持续集成到 ...

  2. Nginx的进程

    传统上基于进程或线程模型架构的web服务通过每进程或每线程处理并发连接请求,这势必会在网络和I/O操作时产生阻塞,其另一个必然结果则是对内存或CPU的利用率低下.生成一个新的进程/线程需要事先备好其运 ...

  3. 判断产品Key的正则表达式(格式: ABCD1-ABCD2-ABCD3-ABCD4-ABCD5)

    正则表达式: ^[A-Za-z0-9]{5}-[A-Za-z0-9]{5}-[A-Za-z0-9]{5}-[A-Za-z0-9]{5}-[A-Za-z0-9]{5}$ 改进: ^([A-Za-z0-9 ...

  4. 笔记四:python乱码深度剖析二

    一:学习内容 获取更改系统编码 判断字符的编码类型 文件存储和读取的编码 二:获取更改系统编码 1. 获取系统编码 import sys print sys.getdefaultencoding() ...

  5. 使用Python学习RabbitMQ消息队列

    rabbitmq基本管理命令: 一步启动Erlang node和Rabbit应用:sudo rabbitmq-server 在后台启动Rabbit node:sudo rabbitmq-server ...

  6. [转]使用EntityFramework6.1的DbCommandInterceptor拦截生成的SQL语句

    本文转自:http://www.cnblogs.com/Ax0ne/p/3620958.html 开始 EF6.1也出来不少日子了,6.1相比6.0有个很大的特点就是新增了System.Data.En ...

  7. Java - 延迟初始化

    延迟初始化(lazy initialization),也就是在真正被使用的时候才开始初始化的技巧. 不论是静态还是实例,都可以进行延迟初始化. 其本质是初始化开销和访问开销之间的权衡. 毕竟是一种优化 ...

  8. java SE 入门之输入输出(第四篇)

    在第一篇,八大基本类型的时候,我就介绍了输出,当然,这些输出都是简单的,后续写到流的时候,在细化输入输出. 现在只要求看懂输入输出.输入其实就是接受键盘的输入. public class Hello ...

  9. JS中的事件冒泡——总结

    一. 有话要说 事件冒泡这个话题已经被园子里的朋友说透了,已经没什么要讲的了,但是由于呢我这边有个小问题刚好跟这个事件冒泡有关,就突然性想写个总结:一方面是给自己增加印象,另一方面给园子的新手们,提供 ...

  10. [javaSE] 类型转换(1加1等于几)

    打印 ‘a’+1,输出98,解释:’a’是char类型占2个8bit,1是int类型占4个,’a’字符会被自动强制转换为int类型对应ascii码表97 打印’1’+1,输出 50,解释:’1’是ch ...