在之前的练习中一直是直接传递的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. 第7章—SpringMVC高级技术—处理multipart形式的数据

    处理multipart形式的数据 MultipartResolver 用于处理文件上传,当收到请求时 DispatcherServlet 的 checkMultipart() 方法会调用 Multip ...

  2. ubuntu安装maven

    1.安装maven前需要安装JDK 2.下载mavenapache-maven-3.3.9-bin.tar.gz 3.解压maven到当前目录tar -zxvf apache-maven-3.3.9- ...

  3. php如何判断字符串是否是字母和数字的组合

    转载自百度 /其实判断是否是字母和数字或字母数字的组合还可以用PHP ctype_alnum函数 if(!ctype_alnum($vipurl)){ echo '只能是字母或数字的组合';exit; ...

  4. 【数组】3Sum

    题目: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find al ...

  5. Android 开发工具类 21_SAXForHandler

    解析 XML 有两种形式: 1.XMLReader XMLReaser xmlReader = saxParser.getXMLReader(); xmlReadeer.setContentHandl ...

  6. Python 基础语法——数字和表达式(包含数学上的一些函数)

    >>> 2+2 4 >>> 1/2 0 >>> 1.0/2.0 0.5 >>> 1/2.0 0.5 >>> 1 ...

  7. Mac系统的下载(图文详解)

    不多说,直接上干货!   经常使用苹果电脑的网友们,有时候不免会遇到电脑系统崩溃的情况,在通过各种系统补救都无法修复苹果系统时,动手能力稍强的网友肯定会想到要重装系统,这时就需要去下载苹果系统,那么, ...

  8. js验证整数,浮点数

    //验证数字(整数.浮点数都可以通过) function isfloat(oNum){ if(!oNum) return false; var strP=/^\d+(\.\d+)?$/; if(!st ...

  9. [心平气和读经典]The TCP/IP Guide(005)

    The TCP/IP Guide[Page 47, 48, 49] I created The TCP/IP Guide to provide you with an unparalleled bre ...

  10. angularjs 从外部改变controller内的数据

    var appElement = document.querySelector('[ng-controller=seatsCtrl]'); var $scope = angular.element(a ...