Wednesday, February 3, 2016

asp:Panel magic

Did you know that if you wrap things in an asp:Panel in a web form that you may then dictate which button click gets emulated when a user submits the form by way of pressing enter while in one of the fields within that panel? Nice. The "DefaultButton" inline setting in the markup gets the id of the button to click as its setting and that button doesn't even have to be inside of the panel itself!

No comments:

Post a Comment