Is MultiView the same as a TabStrip in ASP.NET 2.0?

  • Thread starter Thread starter needin4mation
  • Start date Start date
N

needin4mation

I wanted easy tabs for my webpage and saw the new MultiView. I read
and couldn't tell, but is the MultiView the same as having tabs? Or
does MultiView bring everything at once and the user just selects it (a
tab?)

Thank you.
 
In v1.x if you wanted to hide/show sections of the page a Panel was one way
to go about it, but you had to write the code to manage that. The MultiView
is essentially a control that does the equivalent of Panel management for
you.

The TabStrip was removed after Beta2, IIRC (maybe it was Beta1).

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Have you tried out the new Wizard control? That is a bunch of MultiViews
wired together.

One thing I discovered is MultiViews can not be nested which IMO is a
crippled implementation that hampers the ability to develop non-linear
views.

As for "tabs" I've been using styled LinkButtons.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
 
So how do most developers accomplish tabs? The "old" way with a
graphical tab and a div underneath, or, gasp, a frame? Thanks again.
 
So how do most developers accomplish tabs? The "old" way with a
graphical tab and a div underneath, or, gasp, a frame? Thanks again.

You'd do it the "old" way :)

Whenever there's a postback or link, then code in your page would have to
tell the MultiView what the current index is.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Not public yet. Its not too difficult but is a bit noisy to keep track of
properties in code....

#region SelectedHeaderTab Method...
private void SelectedHeaderTab(string selectedTab)
{
switch (selectedTab)
{
case "HeaderTabSiteMap": // name of LinkButton
HeaderTabSiteMap.Enabled = false;
HeaderTabSiteMap.CssClass = "HeaderTopRowSelectedTab";
HeaderTabSoftware.Enabled = true;
HeaderTabSoftware.CssClass = "HeaderTab";
HeaderTabsBottomRowPanel.Visible = false;
Session["SelectedHeaderTab"] = "HeaderTabSiteMap";
break;

case "HeaderTabSoftware": // name of LinkButton
HeaderTabSiteMap.Enabled = true;
HeaderTabSiteMap.CssClass = "HeaderTab";
HeaderTabSoftware.Enabled = false;
HeaderTabSoftware.CssClass = "HeaderTopRowSelectedTab";
HeaderTabsBottomRowPanel.Visible = true;
Session["SelectedHeaderTab"] = "HeaderTabSoftware";
break;

default:
HeaderTabSiteMap.Enabled = true;
HeaderTabSiteMap.CssClass = "HeaderTab";
HeaderTabSoftware.Enabled = true;
HeaderTabSoftware.CssClass = "HeaderTab";
break;
}
}
#endregion

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
 
I don't understand why there is not an easy way to do tabs. They're
everywhere on the Internet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top