Hi all,
I have a drop down list that is populated from a database table. During the
databind event I add a row to the beginning of the datatable and set that as
the source of the dropdown. it's value is "0".
I added a CompareValidator to make sure when the web form is submitted, that
the value of the drop down is greater than 0. Everything works great.
My question is, is it more appropriate to use a RequiredFieldValidator? If
so why? I thought this was a good use for the compare validator but my
development team thinks the RequiredFieldValidator is more appropriate.
Any comments are appreciated.
TIA,
CK