摘要:
PageMethods: using System.Web.Services; [WebMethod] public static string Ok() { return "this is function ok!"; }注意:using及WebMethodScriptManager: <asp:ScriptManager ID="sm" runat="server" EnablePage... 阅读全文
摘要:
自定义类: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... 阅读全文
摘要:
自定义类: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... 阅读全文
摘要:
自定义类: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... 阅读全文
摘要:
WebService: [WebMethod] public string[] GetSimpleArray() { string[] cities = { "北京", "上海", "天津", "重庆" }; return cities; }ScriptManager: <asp:ScriptManager ID="sm" runat="server"> <Services>... 阅读全文