Building RIA Applications for Web 3.0 Sample

The application below is a sample application that demonstrates how to create a Web 3.0 application that combines ASP.NET, ASP.NET AJAX 4.0, AJAX Control Toolkit and Silverlight. The application is a fictitious Rad Bikes company that sells bikes and uses SQLExpress 2008 and the AdventureWorks2008 database to show sales territories and details sales figures for salesman in each territory. The home page demonstrates using a custom behavior to add image rotation capabilities to a standard image control. The Sales menu will take you to the sales information page that demonstrates some of the new data binding features of ASP.NET AJAX 4.0 and how Silverlight can be driven via JavaScript. In this case when a territory is selected the Silverlight portion of the page (the bottom portion) will be updated with sales information for that territory using the HTML Bridge that is part of Silverlight. I have an upcoming article tentatively titled Building RIA Applications for Web 3.0 using the Microsoft Platform in .NET Developers Journal that talks more about how this application works but until then feel free to party on the code.

RadBikesHomePage_2

Home Page (select image to enlarge)

RadBikesSalesDetails_2

Sales Page (select image to enlarge)

Setup Details

The application has a few steps that you need to perform before you can run it.

  • The application has a vSalesSummaryViewScript.sql script located in the root directory that needs to be run against the database to create a view not included with AdventureWorks2008.
  • The application also uses the following connection strings that will need to be updated if they don’t match your installation.

<connectionStrings>
<add name=”AdventureWorks2008ConnectionString”
connectionString=”Data Source=.\SQLExpress;Initial Catalog=AdventureWorks2008;Integrated Security=True”
providerName=”System.Data.SqlClient” />
</connectionStrings>

Once you have done all of this the application should work like a charm.

Application Download

RIA Sample Application

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>