Tab Container not visible RRS feed

  • Question

  • User-883855585 posted

    I am trying to add a TabContainer to a blank page but it will not show.  There are no error messages but nothing will show on the page.

    <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
            <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
                <asp:TabPanel runat="server" ID="TabPanel1"> 
                <div class="tabsize">Contact Us</div>

    I even tried a TabContainer from a working page but it would not display either.


    Thursday, November 19, 2015 8:43 AM


  • User603616845 posted


    I think you need to use ActiveTabIndex=1

    or you can try this code..

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TabContainer.aspx.cs" Inherits="AjaxTabContainer.TabContainer" %>  
    <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>  
    <!DOCTYPE html>  
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head runat="server">  
        <form id="form1" runat="server">  
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">  
            <br />  
            <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1" Height="40px" Width="241px">  
                <asp:TabPanel runat="server" HeaderText="Login Form" ID="TabPanel1">  
                <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Registration Form">  

    Hope this will help you.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 19, 2015 8:59 AM