|
Hi guys, first time here. i really didn't know where to post this question on the C# forum or JavaScript Forum, if i am wrong i apologize.
well here is my question. I am creating a share point custom web part using Visual studios 2010. (jquery Live Search web part). the code is in the same file.
how can i call a C# function through JQuery Ajax call?
function liveSearchResults(value)
{
$.ajax({
type: "POST",
url: "DONT KNOW WHAT GOES HERE",
cache: false,
data: value,
contentType: "application/json; charset=utf-8″,
dataType: "json",
success: function(msg) { alert("success");
}
});
}
thank you guys in advance
|
|
|
|
|
The Url is the path to the web service - so, all you need to do is browse to the web service definition in the browser and copy that.
|
|
|
|