Hi,
I have a tabcontainer with two tabs.Both contains a third party calendar control.
And have a button outside the tabcontainer to change the view of calendar. I can do this with the first tab calendar, but when goes to second, how to do the same with a single button control.
Any help appreciated..
Thanks in advance
Bens

Recommended Answers

All 2 Replies

Suggestion:
1. Add a property to your page

private int _tabIndex;

public string TabIndex
{
[INDENT]
get { return _tabIndex; }
set { _tabIndex = value; }
[/INDENT]
}

2. Handle the ActiveTabChanged of your event TabContainer and update your poperty with the tabID of the new tab
3. Check the value of the property in your button click event and then target the appropriate calendar control

Hi,
I tried as you said ,but I coudn't make it....
can you describe step 2 and 3 with code sample? It is very helpfull to me.
Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.