Link to home
Create AccountLog in
Avatar of danielolorenz
danielolorenz

asked on

How Do You Check if an ASP.NET TextBox Contains a Valid Number?

Using C# how do you check if an ASP.NET textbox control contains a valid number and is not blank?

Thanks,

Dan
ASKER CERTIFIED SOLUTION
Avatar of viralypatel
viralypatel
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of danielolorenz
danielolorenz

ASKER

Is there a way to get it to display the error messages on a text label?
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Avatar of sybe
sybe

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
These validators all worked great