摘要: 搞了一下午,搜了一下午,终于下班之前解决了。namespace AjaxTest{ /// <summary> /// WebService 的摘要说明 /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] [GenerateScriptType(typeof(Employ 阅读全文
posted @ 2011-09-14 18:02 ω♪zone咕咯 阅读(1959) 评论(1) 推荐(1) 编辑
摘要: 在此处我就创建了一个默认的web服务,并不做什么修改,把主要集力放在怎么实现JS调Web服务上面。using System;using System.Collections.Generic;using System.Web;using System.Web.Services;/// <summary>///WebService 的摘要说明/// </summary>[WebService(Namespace = "http://tempuri.org/")][WebServiceBinding(ConformsTo = WsiProfiles.Bas 阅读全文
posted @ 2011-09-14 17:52 ω♪zone咕咯 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 3.7.3复杂类型若想传递某些复杂的数据类型,比如某个自定义类型或结构,那么我们要显式告知ASP.NET AJAX异步通讯层为该服务器端类型生成相应的客户端JavaScript类型。如下C#代码描述的Employee类就可以看作一个“复杂类型”,让我们以这个Employee类为例,说明在ASP.NET AJAX异步通讯层传递复杂类型的方法:public class Employee{ private int m_id; public int Id { get { return m_id; } set { m_id = value; } } ... 阅读全文
posted @ 2011-09-14 10:22 ω♪zone咕咯 阅读(215) 评论(0) 推荐(0) 编辑