Was Mesquite High right to ban students from a dance for wearing dresses that were 'too short'?

It was reported on Tuesday that 50 girls from Mesquite High School in Dallas were turned away from their own homecoming dance because their dresses were deemed too short by school officials.