Author: johncrock | Posted on: 10/1/2009 2:20:23 PM | Views : 274

Hi All

Im new to asp.net. I am trying out something simple, such as having 3 panels (Panel1 = visible, Panel2 & 3 are invisible) in the Default.aspx, a link button in each, and by clicking Link1 in Panel1 will make Panel2 visible, and clicking Link2 in Panel2 will make Panel3 visible, and clicking Link3 in Panel3 will make Panel1 visible again.

The following the pretty much the code, which will try explain what im trying to achieve
Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Dim lnk1 As New LinkButton
lnk1.Text = "Go to Panel2"
AddHandler lnk1.Click, AddressOf lnk1Click
Panel1.Controls.Add(lnk1)
End Sub

Protected Sub lnk1Click(ByVal sender As Object, ByVal e As System.EventArgs)
Panel1.Visible = False
Panel2.Visible = True
Panel3.Visible = False
Go to the complete details ...