Hi gentlemen. Here are two ways to keep your controller powered on during programming:
1.) Get close to the console. It should stay sync'ed and powered on. Here's a better way:
2.) Hold down the left and right bumpers, and then plug a USB-to-micro-USB cable into the Microsoft USB port (the one on the top of the controller) and the other end into a Computer. You have to hold left and right bumpers while you do this because right then and there it will kick into programming mode. If you wait until after you plug into the Microsoft charging port it's too late. Now power up your controller and it should stay powered on whether or not it can sync to a console, since it's plugged into the computer, that's enough for the controller to keep itself powered on.