0

I have done it using javascript. But i have to do it on server side.

function Validate()    
    {
       var x = ctl00_txtMobileno.value;
       if (x.charAt(0)=="0" || x.length !=10 || isNaN(x)||x.indexOf(" ")!=-1)
       {
            alert("Enter correct 10 digit mobile number. It should not start with Zero !!");
            ctl00_txtMobileno.focus();
            return false;
       }

    }
4

0 回答 0