i am using one webform for customer using asp.net .i want to check all fields are requied while inserting a record in database.. means i want to validate customer emailid in proper format..mobile number should be in numeric only.. can i used javascript for that? and how can i used that one ?
Yes, you could use javascript for form validation but it is not recommended because one can easily disable javascript. You should use a server side scripting language for that. I see you are using asp. Well, I don't know how to code in asp, but it should not be that hard. Plenty tutorials around the web, just found one.. http://www.w3schools.com/asp/asp_inputforms.asp Code (markup):
Although it as not as secure as PHP or ASP, you can still use JavaScript to check that inputs have been filled out. If you want to use PHP the isset() function might come in handy.
search on google loads of help, for numbers only try the isNan function as well or use regular expressions
yes you can.. try to check this site for a sample of the form validation.. http://www.tizag.com/javascriptT/javascriptform.php