ASP.NET - Ajax控件工具包 - TabContainer的总是隐藏 [英] ASP.NET - Ajax Control Toolkit - TabContainer always hidden
问题描述
我用下面的code到TabContainer的添加到页
I used the following code to add TabContainer to page
<asp:TabContainer ID="TabContainer1" runat="server">
<asp:TabPanel runat="server" HeaderText="tab one" ID="TabPanel0">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel runat="server" HeaderText="tab two" ID="TabPanel1">
<ContentTemplate>
<asp:Button ID="Button1" runat="server" Text="Button" />
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
但是,当呈现页面的TabPanel总是隐藏,我wateched由萤火虫的HTML code和知名度找到隐藏......是什么问题?
http://i.stack.imgur.com/m1eSW.jpg
推荐答案
你试过设置ActiveTab - 属性(由codebehind)或codebehind或ASPX的ActiveTabIndex?
Have you tried to set the ActiveTab-Property(from codebehind) or the ActiveTabIndex from codebehind or aspx?
您还可以检查是否正常工作,如果你明确地将显示器设置为可见的:
You could also check if it works if you explicitly set the display to visible:
ActiveTabIndex="0" style="display:block;visibility:visible;"
您确保Ajax库加载正确?你有你的TabContainer的内的其他Ajax的控制?检查是否所有在该网页的HTML是有效的。
Are you sure that the Ajax libraries are loaded correctly? Do you have other Ajax-Controls inside of your TabContainer? Check if all of your html in that page is valid.
您使用的是最新AjaxToolkit和ToolkitScriptManager而不是ScriptManger?
Are you using the latest AjaxToolkit and the ToolkitScriptManager instead of the ScriptManger?
这篇关于ASP.NET - Ajax控件工具包 - TabContainer的总是隐藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!