开发者

Knockout and MVC 2.0

开发者 https://www.devze.com 2023-01-30 14:28 出处:网络
Does anyone know of an example application using knock开发者_运维问答out js and MVC 2?I\'m trying to learn knockout and am having trouble grasping how to persist model data via an ajax call to an acti

Does anyone know of an example application using knock开发者_运维问答out js and MVC 2? I'm trying to learn knockout and am having trouble grasping how to persist model data via an ajax call to an action.


There's a great post here by the author of Knockout on how to use it with MVC. In MVC 2 you can use the built in model binder instead of a [FromJson] attribute like the article suggests.

Congrats on finding Knockout. My team has absolutely loved working with it. One of our guys replaced a dynamic silverlight grid control that took weeks of development with a knockout form (w/ even more functionality!) in less than a day. It's a great framework for dealing with lists on the client side.


I have ported the knockout samples to .NET MVC3 (Razor)-- with restful data access. The url is http://harshbhasin.com/opensource/ko

0

精彩评论

暂无评论...
验证码 换一张
取 消