摘要: DirectMethod 提供了一种可以从客户端 JavaScript 代码调用服务器端 .NET 方法的功能。用 [DirectMethod] 属性修饰服务器端的 public 或 public static 方法,会向客户端 JavaScript 代码公开服务器端方法。注意:服务器端的方法必须是 public 或 public static。 DirectMethod 基础 下面代码演示 DirectMethod 一个简单的例子,更新<ext:Label> 控件<script runat="server"> [DirectMethod] publ 阅读全文
posted @ 2012-12-17 10:41 春天又来了 阅读(286) 评论(0) 推荐(0) 编辑