Salut,
Voici ma page simple crée sous webmatrix :comme vous avez vu, MaximumValue = 10 > MinimumValue = 4, mais voilà ce que me sort le serveur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 <html> <head> </head> <body> <form runat="server"> <asp:TextBox id="TextBox1" runat="server" MaxLength="10"></asp:TextBox> <asp:Button id="Button1" runat="server" Text="Button"></asp:Button> <asp:RangeValidator id="RangeValidator1" runat="server" ErrorMessage="RangeValidator error msg" ControlToValidate="TextBox1" MaximumValue="10" MinimumValue="4"></asp:RangeValidator> <!-- Insert content here --> </form> </body> </html>
Donc si on traduit ça en français, on aura :
Code : Sélectionner tout - Visualiser dans une fenêtre à part The MaximumValue 10 cannot be less than the MinimumValue 4 of RangeValidator1.
10 ne peut pas être inférieur à 4 !!!!!!!
j'y comprend rien![]()
Partager