3
Answers

how to do allow only phone number validation max 10

Mark Mashup

Mark Mashup

9y
465
1
int number = -1;
//sum = Convert.ToInt32(txtphoneno.Text.ToString());
if (number > 0 && number < 9)
{
lblphonenumber.Text = "show message";
}
else
{
lblphonenumber.Text = "enter must 10";
}

Answers (3)