example.aspx
上传用户:szgaoree
上传日期:2009-01-05
资源大小:74k
文件大小:10k
- <%@ Page language="c#" Inherits="System.Web.UI.Page" ClassName="Example" %>
- <script language="c#" runat="server">
- public class MyClass
- {
- public string FirstName = "Michael";
- public int Age = 28;
- }
- public struct MyStruct
- {
- public string FirstName;
- public int Age;
- }
-
- [AjaxPro.AjaxMethod]
- public string Test01(string input)
- {
- return "Hello " + input;
- }
- [AjaxPro.AjaxMethod]
- public DateTime Test02(DateTime d)
- {
- return d.AddMinutes(10);
- }
- [AjaxPro.AjaxMethod]
- public int[] Test03(int[] i)
- {
- return i;
- }
- [AjaxPro.AjaxMethod]
- public ArrayList Test04(ArrayList list)
- {
- return list;
- }
- [AjaxPro.AjaxMethod]
- public Decimal Test05(Decimal d)
- {
- return d * 2;
- }
- [AjaxPro.AjaxMethod]
- public System.Data.DataSet Test06(System.Data.DataSet ds)
- {
- return ds;
- }
- [AjaxPro.AjaxMethod]
- public bool Test07(bool b)
- {
- return !b;
- }
- [AjaxPro.AjaxMethod]
- public string Test08(string[] s)
- {
- string ss = "";
-
- foreach (string _s in s)
- ss += _s + "#";
-
- return ss.Substring(0, ss.Length -1);
- }
- [AjaxPro.AjaxMethod]
- public System.Collections.Generic.List<string> Test09(System.Collections.Generic.List<string> s)
- {
- return s;
- }
-
- [AjaxPro.AjaxMethod]
- public System.Collections.Generic.List<double> Test10(System.Collections.Generic.List<double> d)
- {
- return d;
- }
- [AjaxPro.AjaxMethod]
- public char Test11(char c)
- {
- return c;
- }
- [AjaxPro.AjaxMethod]
- public char Test12()
- {
- return (char)0;
- }
- [AjaxPro.AjaxMethod]
- public string Test13(char c)
- {
- return "