c# - Ajax TabContainer tabs not working after issues with visibility -
at first having problems forcing tabcontainer show. apparantly caused render 'style="visibility: hidden"' on runtime. fixed adding style="visibility:visible" tabcontainer. looks now:
<asp:tabcontainer id="tabcontainer1" runat="server" style="visibility:visible"> <asp:tabpanel id="tabpanel1" headertext="tab 1" runat="server"> <contenttemplate> contents of tab 1 <br /> contents of tab 1 <br /> contents of tab 1 <br /> </contenttemplate> </asp:tabpanel> <asp:tabpanel id="tabpanel2" headertext="tab 2" runat="server"> <contenttemplate> contents of tab 2 <br /> contents of tab 2 <br /> contents of tab 2 <br /> </contenttemplate> </asp:tabpanel> <asp:tabpanel id="tabpanel3" headertext="tab 3" runat="server"> <contenttemplate> contents of tab 3 <br /> contents of tab 3 <br /> contents of tab 3 <br /> </contenttemplate> </asp:tabpanel> </asp:tabcontainer>
now show. whenever press tab 2 or 3, nothing happens. still shows 'contents of tab 1'.
how fix this? love have working tabcontainer!
your code worked me as-is in visual studio 2012. thing did add scriptmanager.
<ajaxtoolkit:toolkitscriptmanager runat="server" />