How do I know which tab is selected in IE Tabstrip Control

Discussion in 'ASP .Net Web Controls' started by ravi bommineni via .NET 247, Jun 9, 2004.

  1. Hi

    How do I know which tab is selected in IE Tabstrip Control on the client(JavaScript)?

    i did like this.

    document.all['tabstripname'].GetTab()

    this is returning object. but i need to know which tab is selected. please help me?


    --------------------------------
    From: ravi bommineni

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>+BQf+F5jXUW2bZ8saXsGhg==</Id>
     
    ravi bommineni via .NET 247, Jun 9, 2004
    #1
    1. Advertising

  2. ravi bommineni via .NET 247

    David Guest

    You can use the selected index property. like this,


    if (tabs.SelectedIndex == 0)
    {
    ....
    }
    if (tabs.SelectedIndex == 1)
    {
    ....
    }
    if (tabs.SelectedIndex == n)
    {
    ....
    }

    where 1 to n is the index of the tab selected.
     
    David, Jun 9, 2004
    #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. Natasha

    TabStrip or Tab Controls

    Natasha, Aug 21, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    422
    Mark Fitzpatrick
    Aug 21, 2003
  2. Do
    Replies:
    0
    Views:
    476
  3. =?Utf-8?B?TWlrZQ==?=

    How to hide Tabstrip Webcontrol tab

    =?Utf-8?B?TWlrZQ==?=, Jan 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,054
    Teemu Keiski
    Jan 23, 2004
  4. KevinRug

    looking for tab control / tabstrip in VS 2005 beta2

    KevinRug, May 10, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    127
    Steve C. Orr [MVP, MCSD]
    May 11, 2005
  5. Andries

    I know, I know, I don't know

    Andries, Apr 23, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    253
    Gregory Toomey
    Apr 23, 2004
Loading...

Share This Page