I am building some web parts that include some AJAX functionality and found out that any inline scripts I was outputting in my updatepanel were not being executed.  The blog post below offers a great explanation on this... basically, use ScriptManager.RegisterStartupScript with your updatepanel control to add scripts that should be executed when the panel loads.

Inline Script inside an ASP.NET AJAX UpdatePanel - Infinities Loop