在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
今天决定写一篇ASP.NET与Flex交互的案例!为了这个交互俺查了好多资料好多网页看的俺眼睛开花,脑开窍!最后发飙了!终于成功了!嘿!老虎不发威还真MD以为俺是hello cat!
using System;
using System.Data; using System.Configuration; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using FluorineFx; namespace tutorials.remoting { [RemotingService()] public class HelloWorld { public string sayHello(string userName) { return "您好," + userName + "这是来自Fluorine Flash remoting的问候"; } } }
The web root folder and root URL are valid
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#72E4CD, #336A90]"> <mx:RemoteObject id="service" destination="fluorine" source="tutorials.remoting.HelloWorld" showBusyCursor="true" /> <mx:TextInput id="txtName"/> <mx:Button label="Say Hello" click="service.sayHello(txtName.text)"/> <mx:Label text="{service.sayHello.lastResult}" fontSize="18"/> </mx:Application>
|
请发表评论