B
BK
I'm having a really strange problem with and HtmlSelect server control
(listbox) and a RequiredFieldValidator that I am trying to use to make sure
that someone has items in the listbox.
The way that the HtmlSelect is populated is via a combination of client-side
javascript and another aspx page (launched by the javascript).
Anyway, everything seems to work just fine in terms of populating the
HtmlSelect. However, when I postback the form, the RequiredFieldValidator
always thinks that there is nothing in the HtmlSelect and fails validation
(I am only using server-side validation, by the way). I have the
ControlToValidate and all those things hooked up properly. Is there some
trick to setting the RequiredFieldValidator for an HtmlSelect control? Some
property that I am not setting?? I suspect that there is some small setting
that I am missing, but I have spent way too much time on this to keep
struggling.
Any help is appreciated,
Thanks
(listbox) and a RequiredFieldValidator that I am trying to use to make sure
that someone has items in the listbox.
The way that the HtmlSelect is populated is via a combination of client-side
javascript and another aspx page (launched by the javascript).
Anyway, everything seems to work just fine in terms of populating the
HtmlSelect. However, when I postback the form, the RequiredFieldValidator
always thinks that there is nothing in the HtmlSelect and fails validation
(I am only using server-side validation, by the way). I have the
ControlToValidate and all those things hooked up properly. Is there some
trick to setting the RequiredFieldValidator for an HtmlSelect control? Some
property that I am not setting?? I suspect that there is some small setting
that I am missing, but I have spent way too much time on this to keep
struggling.
Any help is appreciated,
Thanks