ASP.NET
  Home arrow ASP.NET arrow Displaying Graphs with an Object Oriented ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Displaying Graphs with an Object Oriented Approach using Silverlight SDK and Visual Studio 2008
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 12
    2007-11-14

    Table of Contents:
  • Displaying Graphs with an Object Oriented Approach using Silverlight SDK and Visual Studio 2008
  • Understanding the ASP.NET 3.5 Web Service
  • Understanding the ASP.NET 3.5 Web Service: continued
  • Displaying the Silverlight graph for a particular product
  • Displaying the Silverlight graph for all products (multiple rows)

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Displaying Graphs with an Object Oriented Approach using Silverlight SDK and Visual Studio 2008


    (Page 1 of 5 )

    In this article, we will focus on developing a Silverlight application which consumes an ASP.NET web service and presents data in the form of a bar graph using Visual Studio 2008. We will follow a simple object oriented approach for creating dynamic Silverlight objects using Silverlight SDK.
    A downloadable zip file is available for this article.

    If you are new to developing Silverlight applications, I strongly suggest you to go through my first walkthrough article in this series. 

    The entire source code for this article is available in the form of a downloadable zip file. The solution was developed using Microsoft Visual Studio 2008 Beta 2 and Microsoft Silverlight 1.1 Alpha on Microsoft Windows Server 2003 Enterprise Edition with Microsoft SQL Server 2005 Enterprise Edition. I didn’t really test it in any other environment. I request that you post in the discussion area if you have any problems with execution.

    Understanding the Visual Studio solution

    Once you download the source code, you will find a folder named “SilverlightSampleWithWebService.” This contains a Visual Studio 2008 solution with three projects.

    • NorthwindService

    • SilverlightTest

    • SilverlightTest2


    First of all, the above projects must be configured on same web server (IIS) you will use for testing the solution. Make sure that all of the above web sites are configured with ASP.NET 2.0 runtime (in IIS). Do not forget to provide security to the web site and folders. All of these steps are explained in greater detail in my previous article.

    Once you open the above Visual Studio 2008 solution, the solution explorer looks like the following screen shot:


    “NorthwindService” is an ASP.NET web service which provides information (data) to consumers by accessing data from the database. “SilverlightTest” simply displays a particular product and its sale value along with a representation of a graph (comparing all product sales). “SilverlightTest2” further extends “SilverlightTest” with an object oriented approach for presenting multiple rows of data along with the graph representation.

    More ASP.NET Articles
    More By Jagadish Chaterjee


       · Hi,This is my second article focusing on Silverlight application development...
       · really grear article for silverlight and Webservice use.. i hav installed on code...
       · hi, i m able to see the web service in browser bt when i enter the productID...
       · great article about silverlight. but when i run the application after entering...
       · Silverlight page, by default, would not display anything if any error gets raised as...
       · Pleas make sure that your sql server instance allow Remote Network connections. You...
       · please make sure that your connection string is correct, your instance is running...
     

    ASP.NET ARTICLES

    - Adding Content to a Static ASP.NET Website
    - Building a Static ASP.NET Website in a Basic...
    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek