Avatar of Chris Jones
Chris JonesFlag for United States of America

asked on 

how to add validation to controls

hello i need help on adding validation to controils on my aspx pages
ASP.NET

Avatar of undefined
Last Comment
Chris Jones
Avatar of prairiedog
prairiedog
Flag of United States of America image

What are you trying to validate? What control are you using?
Avatar of Chris Jones
Chris Jones
Flag of United States of America image

ASKER

all of the controls i need to validate are text boxes but i want the user to enter the correct info

EXAMPLE
phone
email
date
time
ETC.....
Avatar of prairiedog
prairiedog
Flag of United States of America image

For phone number, email, datetime, you might use RegularExpressionValidator for each text box to control the format of the data entered. Just drag & drop a RegularExpressionValidator control to the end of each text box, and set ControlToValidate to the text box's ID, then define the ValidationExpression property for each validator.
Avatar of Chris Jones
Chris Jones
Flag of United States of America image

ASKER

so how do i make a custome control were only numbers can be entered
ASKER CERTIFIED SOLUTION
Avatar of prairiedog
prairiedog
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Chris Jones
Chris Jones
Flag of United States of America image

ASKER

fast great answer easy to understand
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo