I’ve been amusing myself creating a simple online database application using Silverlight. I had this mostly working a while back, but needed to finish off some pieces in order to get it fully functional.
This is created using Silverlight 2.0 and demonstrates the following:
- A bound DataGrid (as you can see, work is still needed to get the dates formatted sensibly).
- Integration with ASP.NET authentication. You have to log in to see the data, and you have to log in with admin rights to be able to update it.
- Create,Retrieve,Update,Delete using ASP.NET web services.
- Image upload using Silverlight and an ASP.NET handler.
- Filter a DataGrid (idea taken from here).
- Written in Visual Studio 2008, and hosted on this site, which runs Debian Linux, hence Mono and MySQL. Would you have known if I had not told you?
You can try it here. I’ll post the code eventually, but it will be a couple of months as it links in with another article.
MVP Ken Cox notes in a comment to Jesse Liberty’s blog:
Hundreds of us are scouring the Internet for a realistic (but manageable and not over-engineered) sample of manipulating data (CRUD operations) in a Silverlight 2 application. There are promising pieces of the puzzle scattered all over the place. Unfortunately, after investing time in a sample, we discover it lacks a key element – like actually saving changed data back to the database.
I can safely say that mine is not over-engineered, and that yes, it does write data.