WebCurrencyEditor1.MinValue = 25 WebCurrencyEditor1.MaxValue = 100
WebCurrencyEditor™ allows you to set a range of currency values that your end-user can enter into the editor by simply setting the control’s MinValue and MaxValue properties. If an end-user types a currency value more than the maximum value then the editor sets the value to the maximum value. Similarly, if an end-user types a currency value less than the minimum value then the editor sets the value to the minimum value.
You can set the MinValue and MaxValue properties either by using the Microsoft® Visual Studio® Property Window or by using the following code:
In Visual Basic:
WebCurrencyEditor1.MinValue = 25 WebCurrencyEditor1.MaxValue = 100
In C#:
WebCurrencyEditor1.MinValue = 25; WebCurrencyEditor1.MaxValue = 100;
In JavaScript:
var Editor = $find("WebCurrencyEditor1"); Editor.set_minValue(25); Editor.set_maxValue(100);