Wednesday, February 18, 2009

I've got my Sql Server 2005 back for AclEditor.com, reconnected, and BAM! my PrezOfTheEarth data was still there!! Happy I don't have to redo that!!!

So I've added a subdomain on AclEditor.com for my old PrezOfTheEarth.com code - just to illustrate how to use AJAX, GridView, DetailsView, and many other common controls. The cool part of this is how easily (if you know how) you can do a few great things:
1) AJAXification of these controls is very standard and simple using the UpdatePanel AJAX control, and enhanceable too for a few nice tricks like the ProgressTemplate in an UpdateProgress AJAX control.
2) Using XSD for an ObjectDataSource on the page you can automajically bind, filter, sort, page and other nifty tricks.
3) Using templates, bind and eval, you can modify the representation to your taste; you don't have to accept raw data from the binding if you know how to use templates.

One other interesting trick with an infrequent side effect is using a master page to hold two "forms"... one for the "form" we care about, but another form for postback required for the google adsence HTML snippet. Sometimes however, the side effect pops up a message.

But the main point was to show how using AJAX and ASP.NET you can develop simple and codeless database-centric pages. Here the URL in the subdomain:

http://prezoftheearth.acleditor.com/

Next steps:
1) Redo this in Silverlight 2.0 to do automajic binding and a better job than AJAX.
2) Add database for the online Silverlight 2.0 version of AclEditor.com to support blobbing for file download.
3) Add code for the Silverlight 2.0 version of AclEditor.com for Save after edit.

No comments:

Post a Comment