Active Server Pages Programming (ASP)/input validation

Advertisement


Question
i m doing my final project in asp i have the following problems
1.if a form need numaric data so that is must accept only numaric data.so how to define numaric data in asp?
2.what is tha proper way of email validation

Answer
Hi,

Two ways to do this, you can validate the form using Javascript, this is probably the best way. Or you could make a function that validates if the item entered is validated. Like I mentioned before it would probably be better to do this using Javascript as you can validate on the client side.

Email validation is mostly done using Javascript, you should fine plenty of functions on the web to perform this as well as the numerical check

Hope this helps.

CHeers

Active Server Pages Programming (ASP)

All Answers


Answers by Expert:


Ask Experts

Volunteer


Ashley Brazier

Expertise

Main focus is ASP, SQL Server 2000 & 2005

Experience

Over 6 years experience.

Education/Credentials
BCs Honours Software Design and Networks

©2012 About.com, a part of The New York Times Company. All rights reserved.