Panel Control: border style (VB.net) : Panel « Asp Control « ASP.Net






Panel Control: border style (VB.net)

<%@ Page Language=VB Debug=true %>
<HTML>
<HEAD>
<TITLE>Setting the Style of a Panel Control</TITLE>
</HEAD>
<BODY LEFTMARGIN="40">
<form runat="server">
<asp:panel 
    id="Panel1" 
    runat="server"
    font-name="Arial"
    font-bold="True"
    forecolor="yellow"
    backcolor="blue"
    borderstyle=3
    bordercolor="green"
    borderwidth=4
    horizontalalign="Center"
>
    Enter your name:<BR>
    <asp:textbox 
    id="txtName" 
    runat=server 
    />    
    <BR>
    Enter your password:<BR>
    <asp:textbox 
    id="txtPassword" 
    runat=server 
    />    
</asp:Panel>
</form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.Panel Control: foreground and background color (VB.net)
2.Basic Panel Control: holding other controls (VB.net)
3.Scrollable asp panel (C#)
4.Make the asp panel visible (C#)
5.Hide and show asp:Panel in order to hide and show the controls it contains