title: How does a Panel's DefaultButton property work?
body: <p>What is happening when you declare a <code>Button</code> to be used as the <code>DefaultButton</code> in an ASP.NET <code>Panel</code>? I understand that ASP.NET will render the contents of the Panel to a <code>div</code> and pass a bunch of stuff to the ViewState. Is there JavaScript inside the ViewState that handles the rendered Button's click event? I thought ViewState was just that - info about state. How does it work?</p>