I am stuck working with the TabContainer control of the Ajax Contol Toolkit.
When a user clicks a tab, I am trying to capture which tab was clicked (like the index).
Anyone out there know if this is possible?
I am stuck working with the TabContainer control of the Ajax Contol Toolkit.
When a user clicks a tab, I am trying to capture which tab was clicked (like the index).
Anyone out there know if this is possible?
The stupid question is: why do you need to know this??
I'm using the TabContainer in the Ajax Control Toolkit myself, too - but I've never felt the urge to know when which tab was clicked. The TabContainer will show the appropriate page, and the user can interact with the controls on that tab page - why do you need to know what page was activated? What's your scenario?
Checking out the Ajax Control Toolkit website show a few properties of interest:
Could you tap into either the ActiveTabChanged
or OnClientActiveTabChanged
event to achieve what you're looking for??
Marc
The server side event ActiveTabChanged works fine. Just make sure to set AutoPostBack to "true"