Author: mbielski | Posted on: 3/8/2010 7:14:28 PM | Views : 420

I'm adding a RequiredField validation control to a page programmatically and it is appearing on the page already tripped, but only when the page is the result of a postback. This is part of a survey and polling system that lives entirely in a DLL and works as follows:
The first page is shown.
Choices are made, and the Next button is clicked (which causes validation.)
The entire Request.Form collection is sent to the DLL for processing.
The next question in the series is returned as a Panel that contains the controls that make up the question (in this case, a RadioButtonList and a RequiredFieldValidator.)
When the controls are rendered on the page, the RequiredFieldValidator appears already tripped with the error message already displayed.
This happens whether or not a ValidationSummary is used. If one is used, it appears on the page as already tripped as well.
The code that I am using to add the RequireFieldVal ...

Go to the complete details ...