I am having trouble getting inside my Search WebMethod from my JQuery call. Maybe someone could help to point me in the right direction.
I also packed up everything
You need to do the following (C#):
public static[WebMethod] attributeEnablePageMethods="true"And here is some sample javascript:
$().ready(function() {
$(yourDropDownList).change(LoadValues);
});
function LoadValues() {
PageMethods.YourMethod(arg1, CallSuccess, CallFailed);
}
function CallFailed(result) {
alert('AJAX Error:' + result.get_message());
}
function CallSuccess(result) {
//do whatever you need with the result
}