I think maybe the difference is my aspx code is running in a master page and thus the control name client id is pre-pended with the Content tag?
Can you try it with a master page?
I was able to get it to work by doing it in the OnClientLoaded event in javascript.
Thanks,