How may take out from a webtextfield type number the arrows to increase and decrease ?
Donât set the field as Type Numeric
Yep, thatâs simple, I need the field accepting just number, tab and arrows so Number Type was good for what i Need.
The âfield typeâ doesnât restrict data entry. Itâs merely to change suggested input controls on some browsers. This feature and what it does vary by browser and field type. Set it to the type you expect, but donât rely on it to filter or clean data.
Many Thanks Tim, Iâll use my old Class prepared for that .
That made the Job, in the Shown Event :
âonly allow delete/backspace/tab and numbers
me.ExecuteJavaScript(" $(â#"+me.ControlID+"â).keypress(function(e) { var allow_key_codes = [8,9,46,48,49,50,51,52,53,54,55,56,57]; if ( $.inArray(e.keyCode , allow_key_codes) < 0 ) { e.preventDefault(); } }) ; ")