S
Simon
I have asp.net 2.0, vs2005 and c#:
In page there is one textBox and range validator for that textBox:
<asp:TextBox id="txtDuration" Runat="server" Columns="3"></asp:TextBox>
<asp:RangeValidator id="rngValDuration" Runat="server" ControlToValidate="txtDuration" Type="Integer"></asp:RangeValidator>
In code behind I set:
txtDuration.Text = "2";
When I start the page, I get the following error message:
The value '' of the MaximumValue property of 'rngValDuration' cannot be converted to type 'Integer'
I don't know why? It worked in asp.net 1.1
Any idea?
Thanks,Simon
In page there is one textBox and range validator for that textBox:
<asp:TextBox id="txtDuration" Runat="server" Columns="3"></asp:TextBox>
<asp:RangeValidator id="rngValDuration" Runat="server" ControlToValidate="txtDuration" Type="Integer"></asp:RangeValidator>
In code behind I set:
txtDuration.Text = "2";
When I start the page, I get the following error message:
The value '' of the MaximumValue property of 'rngValDuration' cannot be converted to type 'Integer'
I don't know why? It worked in asp.net 1.1
Any idea?
Thanks,Simon