Microsoft .Net C# - Panel Header Text and Border Style

Microsoft Dotnet - Panel Header Text and Border Style

In Panel the give the header text using GroupingText

<asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px" BackColor="White"
ForeColor="red"  GroupingText="Summary">

Panel border style and color by using the below changes in the head tag
<style>
fieldset {border:1px solid red} /* For border color*/
legend {color:red} /* For GroupingText color */
</style>

Declare the Panel and check the Grouping text color and border color
<asp:Panel ID="Panel1" runat="server" GroupingText="Sample">
  <asp:Label ID="Label1" runat="server" Text="Enter Value"></asp:Label>
  <asp:TextBox ID="TextBox1" runat="server" Text=""></asp:TextBox>
</asp:Panel>
 
After the changes it display the border color for panel and also show the panel header text color.