Thanks! that works. With a few minor changes to that example, I got it to exactly what I wanted.
I believe there was one mistake in the attached code. On the ASPX page, I had to change the following property for the button to get it to work: