摘要:
复杂数据类型使用基础 •公有属性或公有Field会被释放和接受 •容器对象 –实现IList接口的对象 –实现IDictionary接口的对象 •Key必须是String aspx ... 阅读全文
摘要:
错误处理 •调用时可以提供一个额外的错误回调函数 •包括超时和服务器端抛出的异常 •超时只能设置在WebService级别 –或者设置在PageMethods对象上 –无法在每个MethodCall时指定 •Sys.Net.WebServiceError –timedout、message、exceptionType、stackTrace属性 aspx ... 阅读全文
摘要:
•服务器端 –只能在aspx页面中定义 –只能是公开静态方法 –使用WebMethodAttribute标记 –ScriptManager的EnablePageMethods属性设为true •客户端 –通过PageMethods.MethodName访问 aspx cs protec... 阅读全文
摘要:
服务器端释放WebService方法 •编写一个普通的ASP.NET WebService •为WebService类添加自定义属性标记 –ScriptServiceAttribute •释放WebService方法 –访问级别为public –使用WebMethodAttribute进行标记 •为页面中的ScriptManager(Proxy)引入asmx文件 客户端访问WebService ... 阅读全文