shepherdweb.com

Archive for January 30th, 2007

How to Point CompareValidator’s ControlToCompare Attribute at a HiddenField

Tuesday, January 30th, 2007

If you point the ControlToCompare attribute of the CompareValidator at a HiddenField you’ll get an error that looks something like this: Control ‘hiddenBalance’ referenced by the ControlToCompare property of ‘CompareValidator1′ cannot be validated. With a small amount of “googling” I found two useful articles: Validating against the value in a hidden input MS KB Article [...]