![]()
J'ai quelques petits soucis avec le certain 'CommonPage'!!! A quoi sert-il?
Qu'est ce que c'est? A quoi correspond-t'il?
Voici mon code, et mon message d'erreur, si quelqu'un peut m'aider ça ne serait pas de refus!!! Merci par avance!!!
Default.aspx:
Default.aspx.cs:
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 <asp:Label ID="AbsentLabel" runat="server" Text="Choisissez la classe concernée" Style="display: block; width: 300px; padding:2px; padding-right: 50px; font-family: Tahoma; font-size: 11px;"> </asp:Label> <ajaxToolkit:DropDownExtender runat="server" ID="DDE" TargetControlID="AbsentLabel" DropDownControlID="DropPanel" /> <asp:Panel ID="DropPanel" runat="server" CssClass="ContextMenuPanel" Style="display :none; visibility: hidden;"> <asp:LinkButton runat="server" ID="Option1" Text="Mocha Blast" CssClass="ContextMenuItem" OnClick="OnSelect" /> <asp:LinkButton runat="server" ID="Option2" Text="Java Cyclone" CssClass="ContextMenuItem" OnClick="OnSelect" /> <asp:LinkButton runat="server" ID="Option3" Text="Dry Fruit" CssClass="ContextMenuItem" OnClick="OnSelect" /> </asp:Panel> <ajaxToolkit:DropDownExtender runat="server" ID="DropDownExtender1" TargetControlID="TextLabel" DropDownControlID="DropPanel" /> <br /> <asp:UpdatePanel id="Update" runat="server"> <ContentTemplate> <asp:Label id="lblSelection" runat="server" Style="padding: 5px;" /> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="Option1" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="Option2" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="Option3" EventName="Click" /> </Triggers> </asp:UpdatePanel> <ajaxToolkit:UpdatePanelAnimationExtender ID="UpdateAnimation" runat="server" TargetControlID="Update" BehaviorID="Highlight"> <Animations> <OnUpdated> <Sequence> <Color AnimationTarget="lblSelection" Duration=".5" PropertyKey="backgroundColor" StartValue="#FFFF90" EndValue="#FFFFFF" /> </Sequence> </OnUpdated> </Animations> </ajaxToolkit:UpdatePanelAnimationExtender>
Et voici mon message d'erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 public partial class DropDown_DropDown : CommonPage { protected void OnSelect(object sender, EventArgs e) { lblSelection.Text = "You selected <b>" + ((LinkButton)sender).Text + "</b>."; } }
Merci par avance de votre aide éventuel. Merci beaucoupMessage d'erreur du compilateur: CS0246: Le type ou le nom d'espace de noms 'CommonPage' est introuvable (une directive using ou une référence d'assembly est-elle manquante ?)
Erreur source:
Ligne 59 : }
Ligne 60 :
Ligne 61 : public partial class DropDown_DropDown : CommonPage
Ligne 62 :
Ligne 63 : {
Ligne 61![]()
Partager