Hi experts,
i am setting my range validator maximum value in page load like this
Dim maxValue As Integer = 4
...
checking some conditions to put the some value in maxvalue variable
......
Me.rangeValidator1.MaximumValue = maxValue
Me.rangeValidator1.ErrorMessage = "Number must range between 1 to " + Convert.ToString(maxValue)
the loop is gooing to condtions and setting some value in maxvalue variable
but i am getting the below error
The value '' of the MaximumValue property of 'rangeValidator1' cannot be converted to type 'Integer'.
Please help me on the above issue immedeatly
Thanks in advance
Krish