摘要: 从客户端调用后台静态方法 1.Ajax Library方式 C#代码: [WebMethod]public static DateTime GetCurrentTime(string str){ return DateTime.Now;} JS代码: <form id="form1" runat="server"> <script language=... 阅读全文
posted @ 2012-05-03 12:15 hen 阅读(12618) 评论(6) 推荐(4) 编辑
摘要: code snippet 1: function GetCurrentTime1() { 2: PageMethods.GetCurrentTime('NewEgg ajax training', CheckIsSuccess); 3: } 4: function CheckIsSuccess(result) { ... 阅读全文
posted @ 2012-05-03 11:15 hen 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 博客文章 格式为:http://www.cnblogs.com/博客名/services/metaweblog.aspx 完成. 阅读全文
posted @ 2012-05-03 10:25 hen 阅读(376) 评论(0) 推荐(0) 编辑