Home All Groups Group Topic Archive Search About

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

Author
28 Dec 2005 5:25 PM
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.

Author
28 Dec 2005 5:46 PM
Brock Allen
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

Show quoteHide quote
> 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.
>
Fix windows and pc errors, click for free system scan

Author
28 Dec 2005 9:48 PM
needin4mation
So how do most developers accomplish tabs?  The "old" way with a
graphical tab and a div underneath, or, gasp, a frame?  Thanks again.
Author
29 Dec 2005 3:33 AM
Brock Allen
> 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
Author
29 Dec 2005 8:10 PM
needin4mation
I don't understand why there is not an easy way to do tabs.  They're
everywhere on the Internet.
Author
28 Dec 2005 5:51 PM
clintonG
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/


<needin4mat***@gmail.com> wrote in message
Show quoteHide quote
news:1135790708.858736.245750@g49g2000cwa.googlegroups.com...
>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.
>
Author
28 Dec 2005 6:29 PM
needin4mation
Do you have an example online of your styled LinkButtons?
Author
29 Dec 2005 5:11 AM
clintonG
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/

<needin4mat***@gmail.com> wrote in message
Show quoteHide quote
news:1135794591.664140.158310@f14g2000cwb.googlegroups.com...
> Do you have an example online of your styled LinkButtons?
>

Bookmark and Share