Updated code to properly handle partial postback from external control trigger.
finished merge.
Corrected error with UpdatePanel triggering.