Hi,
Thanks for your reply.
Actually i got this code from website.
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”
http://www.adobe.com/2006/mxml” xmlns=”*”
layout=”absolute” creationComplete=”userRequest.send()”>
<mx:HTTPService
id=”userRequest”
url=”
http://www.myurl.com/flex/request.asp”
useProxy=”false”
method=”POST”>
<mx:request xmlns=”">
<username>{username.text}
</username></mx:request>
</mx:HTTPService>
<mx:Form x=”22″ y=”10″ width=”493″>
<mx:HBox><mx:Label text=”Username”/><mx:TextInput id=”username”/></mx:HBox>
<mx:Button label=”Submit” click=”userRequest.send()”/>
</mx:Form>
<mx ataGrid id=”dgUserRequest” x=”22″ y=”140″
dataProvider=”{userRequest.lastResult.users.user}”
width=”493″ height=”125″>
<mx:columns>
<mx ataGridColumn headerText=”User ID” dataField=”userid”/>
<mx ataGridColumn headerText=”User Name” dataField=”username”/>
<mx ataGridColumn headerText=”E-Mail” dataField=”emailaddress”/>
</mx:columns>
</mx ataGrid>
<mx:TextInput x=”355″ y=”273″ id=”selectedemailaddress”
text=”{dgUserRequest.selectedItem.emailaddress}”/>
</mx:Application>
in my asp page contains
<%
mxmlStr = “<users>”
mxmlStr = mxmlStr & “<user><userid>121</userid><username>Obama</username><emailaddress>
[email protected]</emailaddress></user>” & vbcrlf
mxmlStr = mxmlStr & “<user><userid>122</userid><username>Bush</username><emailaddress>
[email protected]</emailaddress></user>” & vbcrlf
mxmlStr = mxmlStr & “<user><userid>123</userid><username>Bill</username><emailaddress>
[email protected]</emailaddress></user>” & vbcrlf
mxmlStr = mxmlStr & “</users>”
Response.write mxmlStr
%>
asp page resides in another machine. flex running different machine.
help me out