Database Reference
In-Depth Information
FIguRe 9-6 A new IIS site
Now, browse to the C:\inetpub\OECD folder that you created in the previous
screen and copy the samples in treemap.zip to this folder. Make sure to remove
the files from the zip into the root of this folder. At this point, you can open the
samples by going to http://localhost:5555/treemap.html . Depending on
your security settings, you may need to click Allow blocked content to see it.
A weB SeRVICe SAMPle In C#
As you learned earlier, visualizations are nothing without the data to feed them,
and JSON is the format of data typically used in HTML5 applications. JSON stands
for JavaScript Object Notation. In order to create JSON with data in it, you will
need to write server-side code that creates it, and that is where C# comes in.
eArlIer VersIons oF .neT
If you are using .NET 2.0, you are not able to use the built-in JSON serial-
izer. Instead, you can download one from http://json.codeplex.com/ .
You also need to create a basic web service rather than use a WCF service.
This web service has one objective: retrieve data from SQL Server, Analysis
Services or any other data source, and publish it as JSON that the JavaScript
can consume. .NET 4 provides a convenient JSON serialization method that
converts a C# class to JSON. Of course, to do that, you need a C# class, and
Search WWH ::




Custom Search