G
Guest
Hi
I've spent the last day or so debugging a problem with a CustomValidator and
am now totally stumped! Basically I use a number of CustomValidator's on my
page, but have cut this down now to only 2. When the page is first loaded the
CustomValidator are made and the generated HTML contains both of them. When
the "Apply" button is clicked the page is posted back and my database is
updated. The page is then rebuilt and sent back to the browser. During this
second rebuild, since the data on the page was changed by the user, only 1 of
the CustomValidator's is needed and therefore not constructed and not added.
The curious thing is that after the page is reloaded, if you look at the
html, it contains a definition for both of the CustomValidator's. I've even
had situations where if only one is in the html, it has the ID of the first
and the ErrorMessage & ClientValidationFunction of the second so appears as
a mixture of the two.
This really is very odd and I am hoping that somebody out there might be
able to help.
Thanks in advance.
I've spent the last day or so debugging a problem with a CustomValidator and
am now totally stumped! Basically I use a number of CustomValidator's on my
page, but have cut this down now to only 2. When the page is first loaded the
CustomValidator are made and the generated HTML contains both of them. When
the "Apply" button is clicked the page is posted back and my database is
updated. The page is then rebuilt and sent back to the browser. During this
second rebuild, since the data on the page was changed by the user, only 1 of
the CustomValidator's is needed and therefore not constructed and not added.
The curious thing is that after the page is reloaded, if you look at the
html, it contains a definition for both of the CustomValidator's. I've even
had situations where if only one is in the html, it has the ID of the first
and the ErrorMessage & ClientValidationFunction of the second so appears as
a mixture of the two.
This really is very odd and I am hoping that somebody out there might be
able to help.
Thanks in advance.