Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to Call Ajax Request From View To Controller And How to get Json Result from controller
please give me an example in detailed manner
Posted

Good Morning,

Here's 2 examples

Implementing & Consuming ASP.NET WEB API from JQuery (MVC 4)[^]

http://www.kendoui.com/blogs/teamblog/posts/12-05-11/hello_services_webapi_rest_json_and_ajax.aspx[^]

You don't call Controller, you will call API Controller that returns JSON.
 
Share this answer
 
Google is your friend There are many examples out there.
Look here for Web API approach sample: Implementing & Consuming ASP.NET WEB API from JQuery (MVC 4)[^] (not so nice, but good from technical point of view), and here is one using the older approach: http://ricardocovo.com/2012/03/08/asp-net-mvc-using-json-standard-responses-for-your-ajax-calls/[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900