C
COHENMARVIN
I'm trying to get a rangevalidator to work. Normally this is easy, but
here I'm trying to make the rangevalidator check a range that is from
variables.
Here is the code. Its simple, but it doesn't work. Any help is
appreciated.
<ASP:TextBox id="Kings" Text="0" Columns="4" MaxLength="4"
runat="server" />
<ASP:RangeValidator id="KingsRange" runat="server"
ControlToValidate = "Kings"
MaximumValue = <%# gKingsLeft %>
MinimumValue=<%# gMinimumKings %>
Type = "Integer"
ErrorMessage="The number of kings must be between " & <%#
gMinimumKings %> & " and " _
& <%# gKingsLeft %>
Display = "dynamic">
*
</ASP:RangeValidator>
here I'm trying to make the rangevalidator check a range that is from
variables.
Here is the code. Its simple, but it doesn't work. Any help is
appreciated.
<ASP:TextBox id="Kings" Text="0" Columns="4" MaxLength="4"
runat="server" />
<ASP:RangeValidator id="KingsRange" runat="server"
ControlToValidate = "Kings"
MaximumValue = <%# gKingsLeft %>
MinimumValue=<%# gMinimumKings %>
Type = "Integer"
ErrorMessage="The number of kings must be between " & <%#
gMinimumKings %> & " and " _
& <%# gKingsLeft %>
Display = "dynamic">
*
</ASP:RangeValidator>