maybe you can do it like this...




if (txtTicketID.Text.Length > 8 && txtTicketID.Text.Length < 10)
{
.....
}