TabStrip Trouble

Discussion in 'ASP .Net Web Controls' started by clsmith66, Jan 5, 2005.

  1. clsmith66

    clsmith66 Guest

    Can any one tell me how to specify which tab and pageview are displayed when
    a page loads? I have a tabstrip with three tabs, and each tab contains a
    different menu. What I need to do is open a different tab for different
    types of users who log into the app. Ex. An administrator when logged on
    would automatically go to the admin menu or a technician to the tech menu.
    I've tried changing the selected index on the tabstrip when the page loads
    but the control still defaults to the first tab.

    Any help would be greatly appreciated.

    Thanks,
    Chris
     
    clsmith66, Jan 5, 2005
    #1
    1. Advertising

  2. clsmith66

    clsmith66 Guest

    It would help if I could count and get the right index. Thank you for your
    help.

    Chris

    "Rick" wrote:

    > This is working for me, keep in mind that the index starts at 0:
    >
    > Protected WithEvents mytabstrip As Microsoft.Web.UI.WebControls.TabStrip
    >
    > mytabstrip.SelectedIndex = 2
    >
    > You can disable and enable the tabs also:
    >
    > mytabstrip.Items(2).Enabled = False
    >
    > "clsmith66" <> wrote in message
    > news:...
    >
    > > Can any one tell me how to specify which tab and pageview are displayed

    > when
    > > a page loads? I have a tabstrip with three tabs, and each tab contains a
    > > different menu. What I need to do is open a different tab for different
    > > types of users who log into the app. Ex. An administrator when logged on
    > > would automatically go to the admin menu or a technician to the tech menu.
    > > I've tried changing the selected index on the tabstrip when the page loads
    > > but the control still defaults to the first tab.
    > >
    > > Any help would be greatly appreciated.
    > >
    > > Thanks,
    > > Chris

    >
    >
    >
     
    clsmith66, Jan 5, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robert V. Hanson
    Replies:
    2
    Views:
    508
    Robert Hanson
    Jul 1, 2003
  2. floater55

    IE Webcontrols - Tabstrip

    floater55, Jul 15, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    833
    floater55
    Jul 16, 2003
  3. Hypo
    Replies:
    6
    Views:
    448
  4. Mark Fox

    TabStrip controls

    Mark Fox, Aug 7, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    353
    Mark Fox
    Aug 8, 2003
  5. Yatin Bhuta

    TabStrip control and Form

    Yatin Bhuta, Aug 13, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    351
    Natty Gur
    Aug 13, 2003
Loading...

Share This Page