Greetings everyone,
I'm using JQuery along with ASP.Net and Sharepoint 2010.
Im trying to call a method on the server from client-side with JQuery. I used this http://dotnetslackers.com/articles/ajax/Using-jQuery-with-ASP-NET.aspx#calling-an-asp-net-page-method for testing. But it seems my method in the back is never called.
Also, everytime the AJAX call runs, I got an "error" 200 OK. It never runs in success.
Here my code:
$(".input").change(function (event) { function test(result) {
alert(result.status + ' ' + result.statusText);
}
function test2(result) {
alert(result.d);
}
Server code:
<WebMethod()> _
Public Shared Function GetChangedControl() As String
Return "Test"
End Function
Is there anyone who can help me?
Thanks and best regards,
Mark