Panel WebControl Less Known Features

In this example I want to show you some less used features of one of the basic WebControls, the Panel Control.

DefaultButton
This identifies which button event gets raised when the Panel has focus and the user presses ENTER
GroupingText
This sets a Fieldset and Legend around the controls in the Panel, and sets the Legend value

Here is the Panel declaration




    Name: 
    


This is the output HTML


This is the description of the content of this panel Name:

As you can see a onkeypress event gets added to the DIV tag, which raises the button event.

And a fieldset tag with a legend tag with its value are added around the controls.

In summary, you can use these features to improve both and accessibility and usability of your forms.



Comments

No comments yet.

Add Yours

  • Author Avatar

    YOU


Comment Arrow




About Author

Robert

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning hands down.