views:

795

answers:

1

Hi all. I'm very new to Silverlight and programming in general so help me out here.

I want to plot a Silverlight line/area graph by getting it's coordinates from a database when the user enters some data. The graph will change its value (by pressing refresh on the browser) when the value in the database changes according to what the user enters. I wish to implement this graph (or application) in a HTML environment, like Expression Web.

I am using Visual Studio 2008 .NET 3.5 and C# to do my Silverlight application and SQL Server 2008 for my database. Using Visifire is out of the question. Anyone to give me a head start? Thanks.

Bao

A: 

I'd use the Silverlight Toolkit Charts, bound to data pulled from a webservice. There are a lot of ways to pull data via webservice, such as ADO.NET Data Services.

Here's a blog post about how to do that, with an attached project zip file.

Jon Galloway
What about LinQ to SQL? Are there any tutorials regarding graph creation in regards to LinQ to SQL? I can't seem to find any.
Linq to Sql is a server side technology, it can't be used from SL directly. However you could take Jon's advice about using ADO.NET Data Services to connect SL to your server, then use Linq to Sql on the server side to get the data and return it to SL.
James Cadd
Erm that sounds really complicated lol. Any sources that I can refer to? Thanks.
Hey Jon thanks for the link, but when I try to run the application my browser shows nothing. Any ideas? Thanks.