Display bounds in RangeValidator errors.

protected void RangeValidator_Load(object sender, System.EventArgs e)
{
 sender.ErrorMessage = string.Format("Must be a number from {0} to {1}.", sender.MinimumValue, sender.MaximumValue);
}

No comments:

Post a Comment