zip file also includes an atlas install – so you should just be able to download it with a vanilla Visual Web Developer or VS 2005 install and hit run to launch it). Use this link to download all of the source for the sample (this. You will then be able to easily track your current to-do list, and even see the active items that are in it (every time you refresh your RSS feeds, it will automatically update your to-do list with the latest information: You can then add a subscription to this RSS feed in your favorite RSS reader. Just click the “subscribe to your lists” link and you’ll see an RSS XML view of the data. Lastly, I also added support for viewing your current task-list using RSS. You can still go in and see it by changing the top-filter drop-down list to “done” (also done in an Ajaxish way): ![]() This will remove the list from the “active” filter and hide it from the default view. ![]() When you are done with a list (and presumably its items), you can edit the list and checkbox it as being “done”. Note that the number of active items is shown for each list in the far-right of the list manager screen (I also added code to disable the “delete” button on a list if there is 1 or more active items in the list): In addition to adding/editing/sorting/paging/deleting lists, you can also drill into list items and add individual sub-items (just click the “view active items” link to drill into this): In addition to adding lists (which are done using an Ajax model – no refresh of the entire page), it also provides per-row editing of the values (also done in an Ajaxish way):Īs well as sorting (note: also done in an Ajaxish way with no full page refresh) by any of the columns (just click on a column heading to set the sort-order):Īutomatic paging support is enabled when you have more than 10 lists in your current filter (note: also done in an Ajaxish way): Note: I used CSS for all style information, and I’ve tested the markup output from the sample and it should be XHTML compliant.īasically, this to-do list application provides a simple Ajax-enabled interface to manage lists of items (note: the screenshots are done with FireFox – but obviously it works with IE as well): zip file to your local hard-drive, expand it, open the web-site and hit run). 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. 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). What is really cool is the fact that I was able to enable this without having to write any javascript, or learn/use any new data or input controls (I used only the built-in textbox, dropdownlist, button, gridview, repeater and objectdatasource controls in the sample – together with the new control which is conceptually pretty simple to understand). 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). ![]() Feel free to re-use/modify/re-ship it however you want.īasically, this simple sample I built provides a basic interface to create/manage/delete lists, and then items within those lists. You can download the full source-code to the application here. ![]() 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 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). It makes common Ajax-style scenarios a breeze to build, and really makes programming a lot of fun. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |