Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How do I know which tab is selected in IE Tabstrip Control

Reply
Thread Tools

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

 
 
ravi bommineni via .NET 247
Guest
Posts: n/a
 
      06-09-2004
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>
 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      06-09-2004
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
looking for tab control / tabstrip in VS 2005 beta2 KevinRug ASP .Net Web Controls 3 05-10-2005 11:45 PM
How to hide Tabstrip Webcontrol tab =?Utf-8?B?TWlrZQ==?= ASP .Net 1 01-23-2004 07:34 PM
Change active tab in ASP.net tabstrip control Do ASP .Net 0 10-19-2003 06:07 AM
TabStrip or Tab Controls Natasha ASP .Net 1 08-21-2003 08:39 PM



Advertisments