whiwex
asked on
Visual Basic 2008
I have a page with a tab container with three tabs. Tab one is Total Orders, Tab two is Order details and Tab Three is Volunteer hours. I want to add another Tab Container in each tab. I can only add a tab container in Total Orders tab because it is the ative tab. If I add a tab to the other two tabs I get and error saying that the control is invisible when the page loads. Does anyone know how to work around this.
Thanks
Thanks
I've tried to replicate the issue without success. Can you post more information? How are you trying to create the tabs (at design time, at run time in code...)? Can you post any error message or screen capture showing the problem?
ASKER
I am creating the tab containers at design time and I'm using ajax tab container. The error I get is this
htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
Here the code. If I remove tab container 3 it works fine.
<%@ Page Language="VB" MasterPageFile="~/Master Pages/Administrator.master " AutoEventWireup="false" CodeFile="Summary Report.aspx.vb" Inherits="Administrator_Re ports_Summ ary_Report " title="Untitled Page" %>
<%@ Register assembly="AjaxControlToolk it" namespace="AjaxControlTool kit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head " Runat="Server">
<style type="text/css">
.style1
{
width: 100%;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Cont entPlaceHo lder1" Runat="Server">
<table class="style1">
<tr>
<td width="100%">
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1"
Width="100%">
<asp:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">
<ContentTemplate>
<asp:TabContainer ID="TabContainer2" runat="server" ActiveTabIndex="0"
Width="100%">
<asp:TabPanel ID="TabOrders" runat="server" HeaderText="TabPanel1">
<HeaderTemplate>
Orders
</HeaderTemplate>
</asp:TabPanel>
</asp:TabContainer>
</ContentTemplate>
<HeaderTemplate>
Total Orders
</HeaderTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
<HeaderTemplate>
Order Details
</HeaderTemplate>
<ContentTemplate>
<asp:TabContainer ID="TabContainer3" runat="server" ActiveTabIndex="0"
Width="100%">
<asp:TabPanel ID="TabVendors" runat="server" HeaderText="TabPanel1">
<HeaderTemplate>
Vendors
</HeaderTemplate>
</asp:TabPanel>
</asp:TabContainer>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel3" runat="server" HeaderText="TabPanel3">
<HeaderTemplate>
Volunteer Hours
</HeaderTemplate>
</asp:TabPanel>
</asp:TabContainer>
</td>
<td>
</td>
</tr>
</table>
</asp:Content>
htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
Here the code. If I remove tab container 3 it works fine.
<%@ Page Language="VB" MasterPageFile="~/Master Pages/Administrator.master
<%@ Register assembly="AjaxControlToolk
<asp:Content ID="Content1" ContentPlaceHolderID="head
<style type="text/css">
.style1
{
width: 100%;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Cont
<table class="style1">
<tr>
<td width="100%">
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1"
Width="100%">
<asp:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">
<ContentTemplate>
<asp:TabContainer ID="TabContainer2" runat="server" ActiveTabIndex="0"
Width="100%">
<asp:TabPanel ID="TabOrders" runat="server" HeaderText="TabPanel1">
<HeaderTemplate>
Orders
</HeaderTemplate>
</asp:TabPanel>
</asp:TabContainer>
</ContentTemplate>
<HeaderTemplate>
Total Orders
</HeaderTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
<HeaderTemplate>
Order Details
</HeaderTemplate>
<ContentTemplate>
<asp:TabContainer ID="TabContainer3" runat="server" ActiveTabIndex="0"
Width="100%">
<asp:TabPanel ID="TabVendors" runat="server" HeaderText="TabPanel1">
<HeaderTemplate>
Vendors
</HeaderTemplate>
</asp:TabPanel>
</asp:TabContainer>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel3" runat="server" HeaderText="TabPanel3">
<HeaderTemplate>
Volunteer Hours
</HeaderTemplate>
</asp:TabPanel>
</asp:TabContainer>
</td>
<td>
</td>
</tr>
</table>
</asp:Content>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It was never resolved