web 2.0

ASP.NET(vb.net) & Panel - asp:Panel

ASP.NET(vb.net) & Panel - asp:Panel - asp:Panel : Provides a container for other controls. This control is rendered as an HTML <div> element.

ShotDev Focus:
- ASP.NET(vb.net) & Panel - asp:Panel

ASP.NET(vb.net) & Panel - asp:Panel

Tag Control :

<asp:Panel id="Panel1"
BackImageUrl="url"
HorizontalAlign="Center|Justify|Left|NotSet|Right"
Wrap="True|False"
runat="server">

(Other controls declared here)

</asp:Panel>

Example

Panel.aspx

<%@ Page Language="VB" %>
<script runat="server">

Sub Button1_Click(sender As Object, e As EventArgs)
Me.Panel1.Visible = False
Me.Panel2.Visible = True
End Sub

Sub Button2_Click(sender As Object, e As EventArgs)
Me.Panel1.Visible = True
Me.Panel2.Visible = False
End Sub

</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
<p>
<asp:Panel id="Panel1" runat="server">
<asp:Label id="Label1" runat="server" text="Labe1"></asp:Label>
<asp:Label id="Label2" runat="server" text="Labe2"></asp:Label>
<asp:Label id="Label3" runat="server" text="Labe3"></asp:Label>
<asp:Label id="Label4" runat="server" text="Labe4"></asp:Label>
</asp:Panel>
<br />
<asp:Panel id="Panel2" runat="server">
<asp:Label id="Label5" runat="server" text="Labe5"></asp:Label>
<asp:Label id="Label6" runat="server" text="Labe6"></asp:Label>
<asp:Label id="Label7" runat="server" text="Labe7"></asp:Label>
<asp:Label id="Label8" runat="server" text="Labe8"></asp:Label>
</asp:Panel>
</p>
<p>
<asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Button"></asp:Button>
<asp:Button id="Button2" onclick="Button2_Click" runat="server" Text="Button"></asp:Button>
</p>
</form>
</body>
</html>

Screenshot

ASP.NET(vb.net) & Panel - asp:Panel
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.