0

I have an HTML input control

<input id="textBox1" class="form-control" runat="server"/>

I add the following C# code to make it a Numeric updown control:

textBox1.Attributes["type"] = "number";
textBox1.Attributes["min"] = "0";
textBox1.Attributes["max"] = "50";
textBox1.Attributes["step"] = "1";

This is working fine in Chrome but in Internet Explorer the updown buttons are not displaying.

What should I do to display the buttons in IE also?

I know that a similar question has been asked here but I thought adding the Attributes in code behind could overcome this as suggested here in Sachin Gupta's answer.

Dov Miller
  • 1,958
  • 5
  • 34
  • 46

1 Answers1

1

See https://caniuse.com/#feat=input-number Comment attached to IE versions is:

UI widget does not include increment/decrement buttons.

labilbe
  • 3,501
  • 2
  • 29
  • 34