I wrote a web service in C#. It's quite simple.
public string SetProduct(int id, string name, string category, decimal price)
{
products[id].Name = name;
products[id].Category = category;
products[id].Price = price;
return "test";
}
I can't figure out how to call the web service and get the parameters there.
function change()
{
var id = $('#SetProduct').val();
var category_var = $('#category').val();
var price = $('#price').val();
$.getJSON(uri + '/' + id)
.done(function (data) {
alert('Here');
$('#product').text(data);
});
alert('done');
}
I'm just lost. Do I have to combine all three at the end of the getjson line?
TIA
Rik