Republished with Permission - Original Article
In case you haven’t checked out the new Atlas preview
release yet (which given that it shipped a few days ago and almost everyone is
on vacation this week is very likely), you might want to consider finding some
time to-do so when you get a chance and are back online. It makes common
Ajax-style scenarios a breeze to build, and really makes programming a lot of
I played around using the Atlas drop with ASP.NET 2.0 a few
days ago on a plane ride to the east-coast, and put together a simple
task/to-do list application that shows off one of the new features that comes
with it (specifically the new <atlas:updatepanel> server control that
allows you to use any shipping ASP.NET server control and get incremental
Ajax-style updates in your ASP.NET 2.0 application).
You can download the full source-code to the application here.
Feel free to re-use/modify/re-ship it however you want.
Basically, this simple sample I built provides a basic
interface to create/manage/delete lists, and then items within those lists.
What is neat is that all of the inserts, updates, deletes, sorts, and paging
operations within the application are done in an Ajax way (where only the list
is updated in the browser – which makes the app feel really snappy and alive).
What is really cool is the fact that I was able to enable this without having
only the built-in textbox, dropdownlist, button, gridview, repeater and
objectdatasource controls in the sample – together with the new
<asp:updatepanel> control which is conceptually pretty simple to
understand). I wrote ~40 lines of code to enable all the screenshots below (I
could have easily done it in less than half of that – but I wanted to show off
some fancier data transformations in the lists as well as enable RSS) – and I
was able to build all of the core app functionality from scratch in less than
15 minutes (including creating the database, the data tier, and the UI code).
I’ll walkthrough how this all works after the sceenshots
below – although obviously the best way to learn about it yourself is to
download the sample and run it on your local system (note: if you have the free
Visual Web Developer Express tool installed and SQL Express active, then you
should be able to just copy the above .zip file to your local hard-drive,
expand it, open the web-site and hit run). Note: I used CSS for all style
information, and I’ve tested the markup output from the sample and it should be