flex datagrid .net
==============flex===========
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="Service.GetCustomers.send();" width="689" height="592">
<mx:WebService id="Service" wsdl="http://localhost:4702/flex/Service.asmx?WSDL" useProxy="false">
<mx:operation name="GetCustomers">
</mx:operation>
</mx:WebService>
<mx:DataGrid x="25" width="100%" y="10" dataProvider="{Service.GetCustomers.lastResult.Tables.customer.Rows}">
<mx:columns>
<mx:DataGridColumn headerText="ID" dataField="id"/>
<mx:DataGridColumn headerText="标题" dataField="title"/>
<mx:DataGridColumn headerText="内容" dataField="content"/>
<mx:DataGridColumn headerText="时间" dataField="time"/>
<mx:DataGridColumn headerText="类型" dataField="type"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
=========flex=======================
==========.net===================
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Data
Imports System.Data.SqlClient
'若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。
' <System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org
相关文档:
在Flex中,利用state进行状态和页面的迁移与变换,中间的AddChild IOverride有一个creationPolicy,这个属性有三种设置,分别如下:
AUTO:默认设置,只有在状态改变的时候,即时的生成新增组件;
ALL:在Application加载的时候,就加载了新增的组件,在状态改变的时候显示;
NONE:需要手动的调用该addChild Instance c ......
分页组件:Page.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" >
<mx:Script>
<![CDATA[
&nbs ......
登陆页面
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >
<mx:Script>
<![CDATA[
import mx.messaging.messages.HTTPRequestMessage;
import mx.rpc.http.HTTPService;
import mx. ......