I have a .aspx page that has multiple User Controls. There is a sub on the page that is called to show/hide the correct UC:
On pageload, the sub is called with ShowModules(1) and UC1 is displayed. On UC1, there is a button. For the OnClick of that button, I would like it to call the Parent's sub with ShowModules(2). Is this possible? How? Or, is there a better way to do it?
Thanks,
mwa
<><
Code:
Public Sub ShowModules(ByVal uc As Integer)
Select Case uc
Case 1
WebUserControl11.Visible = True
WebUserControl21.Visible = False
WebUserControl31.Visible = False
Case 2
WebUserControl11.Visible = False
WebUserControl21.Visible = True
WebUserControl31.Visible = False
Case 3
WebUserControl11.Visible = False
WebUserControl21.Visible = False
WebUserControl31.Visible = True
End Select
End Sub
On pageload, the sub is called with ShowModules(1) and UC1 is displayed. On UC1, there is a button. For the OnClick of that button, I would like it to call the Parent's sub with ShowModules(2). Is this possible? How? Or, is there a better way to do it?
Thanks,
mwa
<><