Posted on: 11/18/2014 5:33:19 PM | Views : 456

Need to be able to use Input type=number on asp.net textbox in order to use the Numeric Keypad provided by HTML5.
Have added the following to my codebehind - NewMeter,Attributes.Add("type","number")
Upon running program I see code rendered as - <input name="NewMeter" type="text" value="0.0" id="NewMeter" type="number"/>
When running code in VS2012 Desktop Development I see no numeric spinner on text box.
When running code on my local Win2008 Server and use Desktop browser, android phone browser or iphone safari browser I see no numeric spinner or numeric keypad as one would expect according to HTML5 specs for type="number"
It appears that the first type specified takes effect. In testing on a pure HTML page I can put Type=number before type=text and it works.
Tried Attributes.delete("type") before Add but ...

Go to the complete details ...