Topics: Validation Application Block
Apr 7, 2010 at 9:39 AM


I cant find out in documentation how to change UpperBoundType in attribute. I would just like to ignore UpperBound to get string field which cant be empty but have no limit. Thank you for help.

Best wishes

Apr 7, 2010 at 10:12 AM


You can try using StringLengthValidator overload that accepts the following parameters (int lowerBound, RangeBoundaryType lowerBoundType, int upperBound, RangeBoundaryType upperBoundType) which utilizes the Enum RangeBoundaryType where you can be able to define if your Bound Type is either Ignore, Inclusive or Exclusive.

Let me know if you have questions. HTH,