Issue with buttons not working after page reload.

6 weeks with this problem and I found the issue an hour after posting. I had a block of OnItemReady code for a repeater in the page code twice. Seems it was occasionally tripping it up