'Tab' control 's visible doesn't work.Why?


I use tab control in my applition. And I set visible=false, but it doesn't work.
my code is:
-----------------------------------------------
<asp:ScriptManager ID="ScriptManager1" runat="server" />
  <div>
   <ajaxToolkit:TabContainer runat="server" ID="Tabs" Height="138px" ActiveTabIndex="0"
    Width="402px">
    <ajaxToolkit:TabPanel runat="server" ID="Panel1" HeaderText="Tab1" Visible="false">
     <ContentTemplate>
      1111
     </ContentTemplate>
    </ajaxToolkit:TabPanel>
    <ajaxToolkit:TabPanel runat="server" ID="Panel3" HeaderText="Tab2">
     <ContentTemplate>
      2222
     </ContentTemplate>
    </ajaxToolkit:TabPanel>
    <ajaxToolkit:TabPanel runat="server" ID="Panel2" HeaderText="Tab3">
     <ContentTemplate>
      3333
     </ContentTemplate>
    </ajaxToolkit:TabPanel>
   </ajaxToolkit:TabContainer>
  </div>
--------
in the web page, the 'Tab1' is still there. and visible doesn't work? Why
my configition is:
asp.net 2.0
vs2005 
AjaxControlToolkit 1.0.10920.29667
 
0
chgsnake
6/19/2008 10:50:14 AM
📁 asp.net.ajax_control_toolkit
📃 17816 articles.
⭐ 1 followers.

💬 3 Replies
👁️‍🗨️ 1445 Views



 I copy&pasted your code and it works for me.. Maybe you have something in the code behind?
0
okkko
6/19/2008 11:32:06 AM

Instead of using  visible property , use Enabled,
 <ajaxToolkit:TabPanel runat="server" ID="Panel1" HeaderText="Tab1" Enabled="false">
Enabled works for all versions , because there was a bug in visible property .
Also make sure you are working with the latest toolkit version .

Regards,

Anas Ghanem.


Note:Please Don't hesitate to click "Report Abuse" link if you noticed something wrong on the forums (like duplicate ,Off-topic,offensive,or any post that violates the website "TERMS OF USE"). -- Thanks!

0
anas
6/19/2008 11:40:15 AM

ok,I have resolve this problem.
I setup a new release of AjaxToolkit and it has not this problem.
new release is 1.0.20229.34161
0
chgsnake
6/20/2008 5:47:38 AM
Reply: