I need to call a global WebMethod present on an external CS file from javascript. I am using ASP.NET 3.5. Here is the code:Javascript:\[code\]function ajoutjig() { parent.iframebusy(); PageMethods.ajoutejig(document.getElementById("jig").value, parent.document.getElementById("pn").value, ajoutjigcomp, ajoutjigfail);}function ajoutjigcomp() { alert("SUCCESS"); parent.iframeidle();}function ajoutjigfail(error) { var stackTrace = error.get_stackTrace(); var message = error.get_message(); var statusCode = error.get_statusCode(); var exceptionType = error.get_exceptionType(); var timedout = error.get_timedOut(); /*PageMethods.myclass.classe.envoiemsg();*/ // Display the error. alert( "Stack Trace: " + stackTrace + "<br/>" + "Service Error: " + message + "<br/>" + "Status Code: " + statusCode + "<br/>" + "Exception Type: " + exceptionType + "<br/>" + "Timedout: " + timedout); parent.iframeidle();}\[/code\]I am trying to insert my call at the PageMethods.myclass.classe.envoiemsg(); place.Thank you all for the help