How can we post JSON to Server? ( ASP.NET Jquery interview questions)
- By Shiv Prasad Koirala in ASP.NET
- Oct 3rd, 2013
- 9931
- 0
We can use the "post" method of jquery to send data to the server. Below is how the post method call looks like. First parameter is the URL which will accept JSON data, second is the data which we want to send and the final parameter is the call back function where we receive the response.
var mydata =name:"Shiv",city:"Mumbai"};
$.post("/Send/Request", // URL
mydata , // Data to be sent
function(data,status)alert(data + " " + status);}); // Call back function
Below is one more interesting ASP.NET MVC interview questions what is thread starvation in MVC?
Shiv Prasad Koirala
Visit us @ www.questpond.com or call us at 022-66752917... read more