Flex-ASP.NET Examples

The examples presented on this page illustrate the communication between Flex applications and an ASP.NET server. The following examples are running on this site:

  1. Working with Data
  2. Exchanging Data
For more information about these examples, visit the Flex Getting Started Experience.

This server also provides data that is used by the charting examples in the Flex documenation. For more information, see Charting Data.


Working with Data

The Working with Data example uses an HTTPService to request data from the database on this server and populates a DataGrid control with the results. It also lets you add new rows to the database through a Flex interface. This example uses ASP.NET 1.1.

  • Download the Working with Data example. You compile and run the CRUD.mxml file to use this server.
  • HTML test page — This page shows the current contents of the employees table in HTML. The Flex example does not use this page, but you can access it to be sure that the database is running and that it has content.
  • Raw test page — This page shows the raw output that is processed by the Flex application. View source to see the XML structure of the returned values.

Exchanging Data

The Exchanging Data example uses an HTTPService to create a request object that contains the zipcode and pounds query string parameters. The ASPX pages extract the passed parameters and return either a string or XML. The Flex application parses the returned HTTP response and displays the results in a DataGrid control. This example uses ASP.NET 2.

Charting Data

Many charting examples in the Flex documentation use data extracted from this server. The following list provides links to the examples. The link in parentheses provides the XML output of the request. The best way to view the source data as it is used by Flex is to click the XML link, and then select View > Source in your browser):