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.