I'm not sure I fully understand the sequence of what you are trying to do, what is on the client side and what is not ....
However, you could add JavaScript startup code to the page, which WebMethod then calls. When calling WebMethod through javascript, you can add a callback function that will then be called when WebMethod returns.
If you add the ScriptManager tag to your page, you can call WebMethods defined on the page through Javascript.
<asp:ScriptManager ID="scriptManager1" runat="server" EnablePageMethods="true" />
In the Page_Load function, you can add a call to your WebMethod ..
Page.ClientScript.RegisterStartupScript( this.GetType(), "callDoSome", "PageMethods.DoSome(Callback_Function, null)", true);
Callback_Function is a javascript function that will be executed after calling WebMethod ...
<script language="javascript" type="text/javascript"> function Callback_Function(result, context) { alert('WebMethod was called'); } </script>
EDIT:
This link has been found for Web ADF Controls . Is that what you use?
From this page, it looks like something like this will do a javascript callback.
public void ServerAction(ToolbarItemInfo info) { string jsfunction = "alert('Hello');"; Map mapctrl = (Map)info.BuddyControls[0]; CallbackResult cr = new CallbackResult(null, null, "javascript", jsfunction); mapctrl.CallbackResults.Add(cr); }