.NET From a Markup Perspective

HOWTO: Write controls compatible with UpdatePanel without linking to the ASP.NET AJAX DLL

Eilon Lipton wrote a fantastic article on how to write controls that are “AJAX-aware”. By changing just a few typical lines of RegisterClientScript code and using a small bit of Reflection, you can determine if a page is using a ScriptManager or not and render client script appropriately.