well, it seems to be an easy solution, but consider
that the user launches a series of user controls by
clicking on the items in the navbar.
I looked on the web and discovered that there is a BringToFront()
mehtod. But it didn't work, because i need to determine which
user controls have a "visibility= true" and apply the mehtod
SetToBack() or set the visibility to false to all of them (all user controls which status is actually true)
Any idea how to implement this?
Quote:
quote:Originally posted by planoie
As bad as it might seem, that's how you do it!
If your navbar has some state property you can test off of then you could simplify it a little bit:
usercontrol.Visible = navTabs.SelectedTab == 1;
usercontrol1.Visible = navTabs.SelectedTab == 2;
You can put this in the page prerender event handler so you don't have to wire in all the tests to the tab onclick methods. This is usually how I approach multi-mode pages.
-Peter
|