<script type="text/javascript">
function test()
{
PageMethods.MyMethod("Paul Hayman", OnMyMethodComplete);
}
function OnMyMethodComplete(result)
{
alert(result);
}
</script>
<asp:scriptmanager id="ScriptManager1" runat="server" enablepagemethods="true" enablepartialrendering="true"/>
I hope the above information will be helpful. If you have more concerns, please let me know.