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; }
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); }