Solved

Visual Basic 2008

Posted on 2013-01-28
4
168 Views
Last Modified: 2013-04-24
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
0
Comment
Question by:whiwex
  • 3
4 Comments
 
LVL 25

Expert Comment

by:Luis Pérez
ID: 38830172
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?
0
 

Author Comment

by:whiwex
ID: 38831211
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_Reports_Summary_Report" title="Untitled Page" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" 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="ContentPlaceHolder1" 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>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
0
 

Accepted Solution

by:
whiwex earned 0 total points
ID: 39094143
Please close it was never resolved
0
 

Author Closing Comment

by:whiwex
ID: 39107612
It was never resolved
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now