打印

[asp.net教程] asp.net小技巧之在client端调用server端事件

asp.net小技巧之在client端调用server端事件

asp.net小技巧之在client端调用server端事件:
   string strcmd = page.getpostbackclienthyperlink(controlname,parameter);

   othercontrolname.attributes.add("clienteventname", strcmd);
   小注:
   在上述两行代码中,利用page.getpostbackclienthyperlink方法来取得对服务器控件事件的一个引用,然后通过页面上其它控件的attributes.add方法来添加一个客户端事件,以便能调用server端事件。这样便可以完成在client调用server的事件的功能。

TOP

返回顶部
AYBlue

Processed in 0.054858 second(s), 7 queries.

当前时区 GMT+8, 现在时间是 2009-1-10 11:43 京ICP备06054220号

清除 Cookies - 联系我们 - 163K.com - Archiver - WAP