Voici le code ma page :
Code html : 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 <%@ Page Language="vb" AutoEventWireup="false" Codebehind="InsertionInfosGrille.aspx.vb" Inherits="Administration.InsertionInfosGrille"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//FR"> <HTML> <HEAD> <title>InsertionInfosGrille</title> <meta content="Microsoft Visual studio.NET 7.0" name="GENERATOR"> <meta content="Visual Basic 7.0" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> </HEAD> <body MS_POSITIONING="GridLayout"> <form id="Form1" method="post" runat="server"> <asp:DropDownList id="ceinture_mathematiques" style="Z-INDEX: 112; LEFT: 197px; POSITION: absolute; TOP: 144px" runat="server" Height="21px" Width="113px"> <asp:ListItem Value="Non sélectionnée" Selected="True">Non sélectionnée</asp:ListItem> <asp:ListItem Value="1">Blanche</asp:ListItem> <asp:ListItem Value="2">Jaune</asp:ListItem> <asp:ListItem Value="3">Orange</asp:ListItem> <asp:ListItem Value="4">Verte</asp:ListItem> <asp:ListItem Value="5">Bleue</asp:ListItem> <asp:ListItem Value="6">Marron</asp:ListItem> <asp:ListItem Value="7">Noire</asp:ListItem> <asp:ListItem Value="8">Rouge</asp:ListItem> </asp:DropDownList> <asp:button id="Bt_ajout" style="Z-INDEX: 111; LEFT: 242px; POSITION: absolute; TOP: 445px" tabIndex="47" runat="server" Text="Enregistrer" Font-Size="XX-Small"></asp:button> <asp:label id="Label16" style="Z-INDEX: 105; LEFT: 69px; POSITION: absolute; TOP: 358px" runat="server" Height="18px" Width="123px">Français_Ecrire :</asp:label> <asp:label id="Label15" style="Z-INDEX: 104; LEFT: 68px; POSITION: absolute; TOP: 303px" runat="server" Height="18px" Width="123px">Français_Comp :</asp:label> <asp:label id="Label12" style="Z-INDEX: 103; LEFT: 86px; POSITION: absolute; TOP: 172px" runat="server" Height="18px" Width="100px">Anglais_Oral :</asp:label> <asp:label id="Label9" style="Z-INDEX: 102; LEFT: 63px; POSITION: absolute; TOP: 237px" runat="server" Height="18px" Width="123px">Français_Ecouter :</asp:label> <asp:label id="Label8" style="Z-INDEX: 106; LEFT: 71px; POSITION: absolute; TOP: 271px" runat="server" Height="18px" Width="123px">Français_Parler :</asp:label> <asp:label id="Label5" style="Z-INDEX: 107; LEFT: 84px; POSITION: absolute; TOP: 205px" runat="server" Height="18px" Width="100px">Anglais_Ecrit :</asp:label> <asp:label id="mat_mathematiques" style="Z-INDEX: 101; LEFT: 82px; POSITION: absolute; TOP: 143px" runat="server" Height="18px" Width="100px">Mathématiques :</asp:label> <asp:label id="Label4" style="Z-INDEX: 110; LEFT: 342px; POSITION: absolute; TOP: 115px" runat="server" Height="18px" Width="39px">Dan :</asp:label> <asp:label id="Label3" style="Z-INDEX: 109; LEFT: 201px; POSITION: absolute; TOP: 115px" runat="server" Height="19px" Width="60px">Ceinture :</asp:label> <asp:label id="Label2" style="Z-INDEX: 108; LEFT: 158px; POSITION: absolute; TOP: 59px" runat="server" Font-Size="Large" Height="32px"> Progression d'un stagiaire</asp:label> </form> </body> </HTML>
Donc, comme vous le voyez la liste est bien dans la balise form mais j'ai quand meme l'erreur :
"Le contrôle 'ceinture_mathematiques' de type 'DropDownList' doit être placé dans une balise form avec runat=server. "
si vous pouviez m'éclairer et m'aider
merci d'avance
Partager