Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
how to do allow only phone number validation max 10
Mark Mashup
9y
465
1
Reply
int number = -1;
//sum = Convert.ToInt32(txtphoneno.Text.ToString());
if (number > 0 && number < 9)
{
lblphonenumber.Text = "show message";
}
else
{
lblphonenumber.Text = "enter must 10";
}
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
How to replace existing ms access database with c# code?
How to do Paging in DataGridView using windowsforms?