Friday, June 23rd, 2006
In a new tutorial from Scratch Projects today, they focus on the creation of an album listing combining the powers of Ajax and C#.
Over the past few months I have been toying with Ajax and .NET via the AJAX.NET Pro Library and my first few attempts left me feeling that Ajax was not very useful. Then I recently had a specific task to complete and it seemed to be a perfect candidate for Ajax. The task was very simple, get a list of Albums by an Artist.
This functionality is of course part of a much larger on-line music app I was constructing but I needed to start with something small. The UI was very simple a TextBox to enter an Artistsâ€™ Name and a Table to display the Albums. Since this was such a simple task I decided to spice it up with some AJAX.
In part one, they focus on the creation of the select box to handle the incoming results in a simple and clean way. For the backend, that means adding a serialized object to push them through. Part two really starts getting into the code, creating the necessary handlers to call the remote Ajax script and the addition of more controls to the web page itself (four functions). More serialized objects are set up and tied together to make the artist and album search framework ready to go.
In part three, they focus on the Ajax bits, grabbing the response and parsing out the artist and album names. Finally, in part four, they tie it all together and merge the interface, backend code, and the Ajax helper functionality to make it all work.
Posted by Chris Cornutt at 6:56 am