devOnTap - Stories tagged with .Net
1
Taps

Return JSON Formatted Data for an AJAX Call in an ASP.NET MVC Web Application

published 127 days, 20 hours, 51 minutes ago posted by matthewpomarmatthewpomar 135 days, 16 hours, 21 minutes ago
Tuesday, November 03, 2009 5:23:55 PM GMT Monday, October 26, 2009 9:54:20 PM GMT
In this video Chris Pels shows how to use the JsonResult and Json classes to return instances of classes as JSON formatted data. First, a sample MVC web application is created and a controller and associated view are added for customer information. Then a simple customer class is created as part of the data model. A GetCustomer() function is then added to the customer controller to retrieve data for a single customer in JSON format. Finally, script is added to the customer view that uses jQuery to make a... (more)
category: Web | clicked: 0 | comment | | source: www.asp.net
tags: .Net, ASP.net, MVC