• λ我爱Aspx >> Asp.Net >> 使用ICallbackEventHandler接口实现页面无刷新
  • 使用ICallbackEventHandler接口实现页面无刷新

  • :未知  Դ:internet  :2007-5-20 16:44:44  ؼ:
  • "ReceiveServerData1", context1.ToString());

    String cbReference2 = cs.GetCallbackEventReference("'" +

    Page.UniqueID + "'", "arg", "ReceiveServerData2", "",

    "ProcessCallBackError", false);

    String callbackScript1 = "function CallTheServer1(arg, context) {" +

    cbReference1 + "; }";

    String callbackScript2 = "function CallTheServer2(arg, context) {" +

    cbReference2 + "; }";

    // Register script blocks will perform call to the server.

    cs.RegisterClientScriptBlock(this.GetType(), "CallTheServer1",

    callbackScript1, true);

    cs.RegisterClientScriptBlock(this.GetType(), "CallTheServer2",

    callbackScript2, true);

    }

    </script>

    <script type="text/javascript">

    var value1 = 0;

    var value2 = 0;

    function ReceiveServerData2(arg, context)

    {

    Message2.innerText = arg;

    Ҷƪл˵?
  • һƪUTF-8 and Unicode FAQ
    һƪ不用.net和其组件用asp访问webservice