Hi everybody,

I have a problem in asp application validation. My textbox only accepts numeric value..
It should not accept empty field and negative values and charcters..

I got it for empty field..
but not for numeric value..

Code JavaScript:
function providerid(fld){
  var error=" "
   if(fld.value== ""){
  fld.style.background='Yellow';
  error= "You didn't enter a product id \n";
  }else{
    fld.style.background='White';
  }return error;
}
 
function validateFormOnSubmit(form1) {
  reason += providerid(form1.pid);
  if (reason != "") {
    alert("fields neccessary:\n" + reason);
   return false;
   }
   return true;
}
I am not aware of IsNan function..
Can anyone give some idea about numeric validation..