Bonjour,
je vous explique mon problème, je suis débutante en asp et je dois faire une application web asp/c# pour mon stage. J'utilise un tabcontainer avec plusieurs tabpanels(4), ainsi qu'un gridview et un dropdownlist qui se situent dans le premier tabpanel.

Lorsque je lance l'application le tabcontainer et les tabpanels n'apparaissent pas je n'ai que le label qui est hors de ce tabcontainer.

J'ai donc vérifier si mon gridview se remplissait quand même et c'est bien le cas dès que je le sort de ce tabcontainer.

Page Default.aspx
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Arret_poste_test_._Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 
 
 
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Page sans titre</title>
</head>
<body bgcolor="#d9dee3">
 
    <form id="form1" runat="server">
 
    <div>
        <br />
        <asp:Label ID="lbl_title" runat="server" ForeColor="#FF8000" Text="Gestion des arrêts poste :" Font-Underline="True" Font-Size="Larger" Width="184px"></asp:Label>
        &nbsp;
        &nbsp;
        &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<br />
        &nbsp;&nbsp;
          <cc1:TabContainer ID="TabContainer1" runat="server" Height="1000px" Width="1150px" AutoPostBack="true" ActiveTabIndex="3" OnPreRender="TabContainer1_PreRender">
            <cc1:TabPanel ID="Tab1" runat="server" HeaderText="Arrêt poste">
                <ContentTemplate>
                    <br />
                    &nbsp; &nbsp; &nbsp; &nbsp;<asp:Label ID="lbl_uti" runat="server" BorderColor="Blue" BorderStyle="None" ForeColor="Desktop"
            Text="Utilisateur :" Font-Underline="True"></asp:Label><br />
                    &nbsp; &nbsp; &nbsp;&nbsp;
        <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSourceUser"
            DataTextField="UserName" DataValueField="UserID">
        </asp:DropDownList><asp:SqlDataSource ID="SqlDataSourceUser" runat="server" ConnectionString="<%$ ConnectionStrings:PS_TESTConnectionString %>"
            SelectCommand="SELECT [UserID], [UserName] FROM [WBDT_USER]"></asp:SqlDataSource>
        &nbsp;&nbsp; <asp:Label ID="lbl_tic_ar" runat="server" BackColor="#FFFFC0" Font-Underline="True"
                        ForeColor="CornflowerBlue" Text="Liste des tickets d'arrêt de poste : "></asp:Label>
                    <br />
                    <br />
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CellPadding="4" DataKeyNames="ID_ticket" DataSourceID="SqlDataSourceTA" ForeColor="#333333"
                        GridLines="None" Height="463px" Width="1125px" style="table-layout: auto;" HorizontalAlign="Center">
                        <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
                        <Columns>
                            <asp:BoundField DataField="ID_ticket" HeaderText="|ID TA|" InsertVisible="False"
                                ReadOnly="True" SortExpression="ID_ticket">
                            </asp:BoundField>
                            <asp:BoundField DataField="TicketTypeCode" HeaderText="|Type|" SortExpression="TicketTypeCode">
                            </asp:BoundField>
                            <asp:BoundField DataField="MaintenanceTypeCode" HeaderText="| Maintenance|"
                                SortExpression="MaintenanceTypeCode">
                            </asp:BoundField>
                            <asp:BoundField DataField="DateValueA" HeaderText="|Date|" SortExpression="DateValueA" />
                            <asp:BoundField DataField="SessionUserID" HeaderText="|ID Demandeur|" SortExpression="SessionUserID">
                            </asp:BoundField>
                            <asp:BoundField DataField="WBVS" HeaderText="|Value Stream|" SortExpression="WBVS">
                            </asp:BoundField>
                            <asp:BoundField DataField="WBCELL" HeaderText="|Cellule|" SortExpression="WBCELL">
                            </asp:BoundField>
                            <asp:BoundField DataField="AssignedUserID" HeaderText="|ID Assignée|" SortExpression="AssignedUserID">
                            </asp:BoundField>
                            <asp:BoundField DataField="SeverityDTCode" HeaderText="|Code priorité|" SortExpression="SeverityDTCode">
                            </asp:BoundField>
                            <asp:BoundField DataField="DTStatus" HeaderText="|Status|" SortExpression="DTStatus">
                            </asp:BoundField>
                            <asp:CheckBoxField DataField="EMailFollowing" HeaderText="|EMail|" SortExpression="EMailFollowing" />
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                        <EditRowStyle BackColor="#2461BF" HorizontalAlign="Center" />
                        <AlternatingRowStyle BackColor="White" />
                        <EmptyDataRowStyle HorizontalAlign="Center" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSourceTA" runat="server" ConnectionString="<%$ ConnectionStrings:PS_TESTConnectionString %>"
                        SelectCommand="SELECT [ID_ticket], [TicketTypeCode], [MaintenanceTypeCode], [DateValueA], [WBVS], [WBCELL], [AssignedUserID], [SessionUserID], [SeverityDTCode], [DTStatus], [EMailFollowing] FROM [WBDT_DT_TICKET]">
                    </asp:SqlDataSource>
                   <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" CombineScripts="True"/>
                   </ContentTemplate>
                <HeaderTemplate>
                    Arrêt poste
                </HeaderTemplate>
            </cc1:TabPanel>
            <cc1:TabPanel ID="Tab2" runat="server" HeaderText="Intervention">
                <HeaderTemplate>
                    Intervention
                </HeaderTemplate>
            </cc1:TabPanel>
            <cc1:TabPanel ID="Tab3" runat="server" HeaderText="Planification">
                <HeaderTemplate>
                    Planification
                </HeaderTemplate>
            </cc1:TabPanel>
            <cc1:TabPanel ID="Tab4" runat="server" HeaderText="Paramètres">
                <HeaderTemplate>
                    Paramètres
                </HeaderTemplate>
            </cc1:TabPanel>
        </cc1:TabContainer></div>
 
    </form>
</body>
</html>
Cela fait une semaine que je cherche sans trouver...celà est peut être lié aussi au fait qu'il n'y a rien dans ma page Default.aspx.cs
Merci d'avance pour votre aide
(si ce message est mal situé merci de le déplacer)