Bonsoir tout le monde,
j'ai exécuté ma page mainte fois , sans que la moindre erreur apparaisse, et puis tt à coup ca a surgit
voila l'erreur :voila le code de ma page ascx:
Code : Sélectionner tout - Visualiser dans une fenêtre à part page_validators est indefini
au debu , j'ai cru que l'erreur vient du validator, donc je l'ai commenté , en vain
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 <%@ Control Language="vb" AutoEventWireup="false" Codebehind="OperationsCartesBorne.ascx.vb" Inherits="OperationsCartesBorne" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <%@ Register TagPrefix="uc1" TagName="DesktopModuleTitle" Src="../DesktopModuleTitle.ascx" %> <script language="javascript"> function LaunchUpCodePin(hRet) { document.AxUnicampusInitCP.LaunchOperation(); GetResultsUpCodePin(hRet); //GetResultsUpCodePin(hRet); //document.AxUnicampusInitCP.Close(); //window.navigate("DesktopDefault.aspx?tabindex=13&tabid=14"); } function GetResultsUpCodePin(hRet) { var res; var back=""; res = document.AxUnicampusInitCP.ReadResultsCdePin(); if (res != null ) { back = res.substring(0,2); } document.getElementById('_ctl0_hResultOperation').value = back; document.getElementById('_ctl0_LbReinsc').click(); } /*function GetResultsReinscription(hRet) { var res; var back; //res = document.AxUnicampus.ReadResultsReinscription(); res=document.AxUnicampusInitCP.ReadResults("FicRetou.ret"); alert(res); document.getElementById(hRet).value = res; //traitements des Erreurs //document.getElementById('_ctl0_hResultReinsc').value = Readresult(res) //Readresult(res); document.getElementById('_ctl0_LbReinsc').click(); }*/ </script> <uc1:desktopmoduletitle id="DesktopModuleitle1" runat="server"></uc1:desktopmoduletitle> <table height="75%" width="100%"> <tr> <td align="left" colSpan="2"><asp:label id="lblErreur" runat="server" Font-Bold="True" ForeColor="Red"></asp:label><INPUT id="hResultOperation" type="hidden" name="hResultOperation" runat="server"> <asp:linkbutton id="LbReinsc" style="DISPLAY: none" runat="server"></asp:linkbutton></td> </tr> <tr> <td style="WIDTH: 394px" vAlign="top"> <table style="WIDTH: 392px; HEIGHT: 102px"> <tr> <td> </td> <td style="WIDTH: 338px" align="right"><asp:imagebutton id="btnInitPIN" ImageUrl="images/initPin.gif" Runat="server"></asp:imagebutton></td> <td> </td> </tr> <tr> <td> </td> <td style="WIDTH: 338px" align="right"><asp:imagebutton id="btnModifyPIN" ImageUrl="images/modifyPIN.gif" Runat="server"></asp:imagebutton></td> <td> </td> </tr> </table> <asp:Label id="lblUpCodePin" runat="server"></asp:Label> </td> <td> <table height="420" width="480" align="left" background="images/backgroudBorne.jpg"> <tr> <td><asp:panel id="PnConfirmer" runat="server" Height="163px" Visible="False"> <TABLE align="center"> <TR><TD> <asp:Label id="Label2" runat="server" Font-Bold="True" Width="225px">Veuillez Saisir votre nouveau code PIN :</asp:Label></TD> <TD> <asp:TextBox id="txtNewPIN" runat="server" TextMode="Password"></asp:TextBox></TD> </TR> <TR> <TD> <asp:Label id="Label3" runat="server" Font-Bold="True" Width="225px">Confimer :</asp:Label></TD> <TD> <asp:TextBox id="txtNewPINConf" runat="server" TextMode="Password"></asp:TextBox></TD> </TR> <TR> <TD> <asp:CompareValidator id="Comparevalidator1" runat="server" ControlToValidate="txtNewPIN" Type="String" Operator="Equal" ControlToCompare="txtNewPINConf" ErrorMessage="Les codes PIN saisis doivent être identiques !"></asp:CompareValidator> </TD> <TD align="right"> <asp:Button id="btnConfirmer" runat="server" Font-Bold="True" Text="Valider" CausesValidation=False ></asp:Button> </TD> </TR> </TABLE> </asp:panel></td> </tr> </table> </td> </tr> </table>l'erreur persiste, je sais plus quoi faire
Partager