a simple but inelegant solution:add a hidden button <asp:Button id="yourbtn" runat="server" style="display:none" onclick="YourMethod" /> in your page, bind the method to this button:void YourMethod(Object o, EventArgs e)
{
//call other methods here
}in javascript, call
document.all("yourbtn").click();

解决方案 »

  1.   

    哈,思归的好方法,妙不过,用WebService做服务端,用WebService.htc做客户端可能才是楼主想要的
      

  2.   

    then, use WebService behavior:
    http://msdn.microsoft.com/library/default.asp?url=/workshop/author/webservice/using.asp
      

  3.   

    谢谢。其实我的要求很少,还用不着WebService。
    顺便再问:如何获得一个控件(如按扭)在IE的绝对位置X和Y,
    在前台用javascript如何获得?服务器上如何获得?