Robin Hames

Hints, tricks and tips relating to MS SQL Server and .NET
posts - 14 , comments - 44 , trackbacks - 0

JQuery

JQuery
Using JQuery Ajax method to pass Json to a MVC3 Action and return a partial view
ASP.NET MVC3 provides out of the box support for binding a Json data object into a Model on postback. This maybe used with a JQuery Ajax function call to post selected data back to an action. It is also possible to return a partial view from the same action, and refresh this from the ajax success function. For example: In my MVC3 Razor project, I create two model classes: public class NameResponseModel { public string Name { get; set; } public DateTime CurrentDateTime { get; set; } public IList<int> ......

Posted On Monday, August 6, 2012 10:23 PM | Comments (6) | Filed Under [ C# ASP.NET MVC 3 Razor JQuery ]

Powered by: