DiscountASP.NET API
The DiscountASP.NET Silverlight project is a proof of concept intended for use and analysis by DiscountASP.NET customers. Read more about the API here.
This project introduces the use of ASP.NET AJAX with Silverlight. Some of the DiscountASP.NET control panel API web service methods return DataSets which meant that during the development of this project I found I was unable to directly reference the DiscountASP.NET webservice from Silverlight because of Silverlight's zero support for ADO.NET. This project therefore implements a wrapper web service to call the DiscountASP.NET web service and in turn return the DataSet data back to Silverlight as xml. The Silverlight application then uses LINQ to XML to enable data binding.
Web service method calls are performed asynchronously using ASP.NET AJAX / ScriptManager and Silverlight methods are marked with the ScriptableMember attribute to allow JavaScript to callback to Silverlight with the results of the web service calls.
To fully run the sample a valid DiscountASP.NET API key is required and only DiscountASP.NET customers are allocated these. The source is freely available if you do not have a valid API key. This project also implements a simple method of using Isolated Storage to store a successfully verified API key on the client.
Read me
Run the sample
Download the source code