flex 3 + .net开发flash Remoting二 --- 功能定义


一. 介绍:
    本示例将向读者展示3个基本的功能:DisplayHellowSayHellowWorldGetUsers。

二. 功能描述。

    1.DisplayHellow
        本方法返回一个字符串。
    2.SayHellowWorld
        本方法接受一个参数,并返回相关字符串。
    3.GetUsers
        本方法返回一个自定义对象(User)。

三. 服务器端代码。
    打开Visual Studio 2005,在App_code中创建以下类:

    1.User.cs
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义using System;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Data;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Configuration;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web.Security;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web.UI;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web.UI.WebControls;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web.UI.WebControls.WebParts;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web.UI.HtmlControls;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
namespace Hxw.Demo.FlashRemoting
}

2.Hellow.cs
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义using System;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Data;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Configuration;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web.Security;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web.UI;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web.UI.WebControls;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web.UI.WebControls.WebParts;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Web.UI.HtmlControls;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using System.Collections.Generic;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
using FluorineFx;
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
[原创]flex 3 + .net开发flash Remoting二 --- 功能定义
namespace Hxw.Demo.FlashRemoting
}

    注意:请在Hellow.cs中引入FluorineFx命名空间,并将类标记为[RemotingService],否则在Flex中无法引用到当前类。

相关文章:

  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2021-09-21
  • 2021-07-29
  • 2021-09-03
猜你喜欢
  • 2021-07-15
  • 2021-09-02
  • 2022-03-08
  • 2022-03-03
  • 2021-09-03
  • 2021-11-23
  • 2022-01-12
相关资源
相似解决方案