TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
JomarMark Tamargo
NA
27
9.6k
Public Validating Textbox value
Jan 13 2016 6:56 AM
Hi
1. Question: How i can valitadate numeric and charater/string value on a textbox using error provider.
sample but i don't try if correct
private bool ValidateAga()
{
bool bStatus = true;
int IsNumeric;
if(int.TryParse(txtAge.Text, out IsNumeric))
{
ErrorPro.SetError(txtAge, "Please enter you age");
bStatus = false;
}
else if(IsNumeric < 22)
{
MessageBox.Show("You enter below age 22", "Message");
}
ErrorPro.SetError(txtAge,"Please enter a valid number");
return bStatus;
}
Reply
Answers (
2
)
Overloading in C#
Change password access