예제 #1
0
        protected override WebControl CreateControlInternal(Control container)
        {
            _textBox = new DnnNumericTextBox {EmptyMessage = LocalizeString(ResourceKey + ".Hint"), ID = ID + "_TextBox", Width = TextBoxWidth };
            _textBox.Style.Add("float", "none");
            _textBox.EmptyMessageStyle.CssClass += "dnnformHint";
            _textBox.Type = Type;
            _textBox.NumberFormat.DecimalDigits = DecimalDigits;
            _textBox.ShowSpinButtons = ShowSpinButtons;
            _textBox.TextChanged += TextChanged;

            //Load from ControlState
            _textBox.Text = Convert.ToString(Value);

            container.Controls.Add(_textBox);

            return _textBox;
        }
예제 #2
0
        protected override WebControl CreateControlInternal(Control container)
        {
            _textBox = new DnnNumericTextBox {
                EmptyMessage = LocalizeString(ResourceKey + ".Hint"), ID = ID + "_TextBox", Width = TextBoxWidth
            };
            _textBox.Style.Add("float", "none");
            _textBox.EmptyMessageStyle.CssClass += "dnnformHint";
            _textBox.Type = Type;
            _textBox.NumberFormat.DecimalDigits = DecimalDigits;
            _textBox.ShowSpinButtons            = ShowSpinButtons;
            _textBox.TextChanged += TextChanged;

            //Load from ControlState
            _textBox.Text = Convert.ToString(Value);

            container.Controls.Add(_textBox);

            return(_textBox);
        }