Hi,
I have an asp:DropDownList which is populated by a datareader. Once a
selection is made from the DropDownList, a second control on the page is
populated based on the value selected in the DropDownList. I have
AutoPostBack set to True and an onSelectedIndexChanged procedure
attached to the DropDownList.
My problem is that I have a CompareValidator control validating that
"Select a Product" is not the value selected in the DropDownList,
otherwise it writes an error message to the ValidationSummary that the
user must select an option from the DropDownList. Once the user selects
an option from the DropDownList the error is removed. However, I have a
number of other controls for the user to populate and a submit button to
save the record. When the user clicks the submit button, the
CompareValidator reports an error on the DropDownList, even if an option
has been selected. Why does this happen, and how can fix this?
Any help would be appreciated. Thank you.