Adam Calderon

Thoughts About .NET That Sometimes Hurt My Brain

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

 

Home Page (select image to enlarge)

RadBikesSalesDetails

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

Comments

Adam Calderon said:

Here is the Power Point Slide Deck that goes with my RIA talks. Sorry it took me so long to get this

# October 31, 2008 12:36 PM

alek said:

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.

Can you explane "run against the database" i do not see a button for that.

# April 10, 2009 2:18 PM

alek said:

<connectionStrings>

<add name="AdventureWorks2008ConnectionString"

     connectionString="Data Source=.\SQLExpress;Initial Catalog=AdventureWorks2008;Integrated Security=True"

 providerName="System.Data.SqlClient" />

</connectionStrings>

i cannot find this code to update in the 238 files and 74 folders i downloaded. Please elaborate.

And this is expired:

Component One Silverlight control suite expired 12/1/08.

:(

# April 10, 2009 2:26 PM

alek said:

when i try to swap it out, or change it, or update it or something, VS2008 says :

Error 1 DBML1103: Element connectionStrings is unexpected under Database element. 0 0

almost like im doing something wrong :)

oh well, thanks, i don't have enough ASP.NET background to understand what to do.

# April 10, 2009 2:37 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)