Mark Mashup

Mark Mashup

  • NA
  • 10
  • 2.9k

how to do allow only phone number validation max 10

Aug 25 2015 1:35 AM
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)