Panel Web Server Control Overview
TheWeb server control provides a container control within a Web Forms page that you can use as a parent for static text and for other controls. In addition, you can use the Panel control for a variety of other purposes.
You can putcontrols and controls inside the Panel control and then define a default button by setting the Panel control's property to the ID of a button in the panel. If users press ENTER while typing in a text box inside the panel, it has the same effect as if the user had clicked the specified default button. This can help users work more efficiently with entry forms.
You can use the Panel control to create areas on the page that have custom appearance and behavior, such as the following:
Creating a grouping box with title You can set theproperty to display a title. When the page renders, the Panel control is displayed with a box around it that contains a title with the text you specify.
You cannot specify both scrollbars and grouping text in the Panel control. If you set grouping text, it takes precedence over scrollbars.
Creating areas on the page with a custom color or other appearance The Panel control supports appearance properties such asand that you can set to create a unique look for a region on a page.
Setting the GroupingText property automatically renders a border around the Panel control.