摘要: Refer to http://stackoverflow.com/questions/9610214/pass-complex-json-object-to-an-mvc-3-actionvar testViewModel ={ Name: ko.observable("Joe Bob"), Locations: ko.observableArray([ { ID:1,Name:"Salem, OR"}, { ID:2,Name:"Big Bear Lake, CA"}, { ID:3,Name:"Big Bear Cit 阅读全文
posted @ 2012-08-24 16:40 webglcn 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 1. Ajax call Asp.net MVC actionfunction save() { var data = { 'Name': $('#name').val(), 'Age': $('#age').val() }; $.ajax({ url: '/user/Detail', //'@Url.Action("Detail", "user")', data: JSON.stringify(data), type: 'POST', con 阅读全文
posted @ 2012-08-24 16:34 webglcn 阅读(1532) 评论(0) 推荐(0) 编辑