Click here to Skip to main content
15,915,324 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can you please give me the code in jquery and web api controller for getting the data a perticular parameter passing from html page to web api get???????i mean i have an id in html page and i want to send that id into web api controller and getting the data using that id....
Posted
Comments
Bh@gyesh 17-Apr-14 7:44am    
Hi,
Following code will help you to pass parameters using JQuery.
$.ajax({
url: <your api="" address="">,
type: "GET",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: JSON.stringify({<parameter> }),
success: function (data) {
<do whatever="" you="" want="" with="" your="" result="">
}

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