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.
Image may be NSFW.
Clik here to view.
Home Page (select image to enlarge)
Image may be NSFW.
Clik here to view.
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>
- The application uses the Component One Silverlight control suite (files needed are already in the project) for the chart which can be downloaded here: http://www.componentone.com/SuperProducts/StudioSilverlight/
Once you have done all of this the application should work like a charm.
Application Download