validation on int textbox c# code example
Example: number validation for textbox
BY LOVE
Use this function onkeypress event of the textbox
function isNumber(e)
{
var specialKeys = new Array();
specialKeys.push(8); //Backspace
var keyCode = e.which ? e.which : e.keyCode
var ret = ((keyCode >= 48 && keyCode <= 57) || specialKeys.indexOf(keyCode) != -1);
return ret;
}