摘要: PageMethods: using System.Web.Services; [WebMethod] public static string Ok() { return "this is function ok!"; }注意:using及WebMethodScriptManager: <asp:ScriptManager ID="sm" runat="server" EnablePage... 阅读全文
posted @ 2009-05-04 22:27 Localhost 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 自定义类:public class people{ private string name; public string Name { get { return name; } set { name = value; } } private string password; public string Password { get { return password; } set { passwo... 阅读全文
posted @ 2009-05-04 21:51 Localhost 阅读(1540) 评论(0) 推荐(0) 编辑
摘要: 自定义类:public class people{ private string name; public string Name { get { return name; } set { name = value; } } private string password; public string Password { get { return password; } set { passwo... 阅读全文
posted @ 2009-05-04 15:42 Localhost 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 自定义类:public class people{ private string name; public string Name { get { return name; } set { name = value; } } private string password; public string Password { get { return password; } set { passwo... 阅读全文
posted @ 2009-05-04 15:24 Localhost 阅读(1019) 评论(0) 推荐(0) 编辑
摘要: WebService: [WebMethod] public string[] GetSimpleArray() { string[] cities = { "北京", "上海", "天津", "重庆" }; return cities; }ScriptManager: <asp:ScriptManager ID="sm" runat="server"> <Services>... 阅读全文
posted @ 2009-05-04 11:49 Localhost 阅读(2012) 评论(0) 推荐(0) 编辑