validationsummary duplicates errors

N

Netwhiz

I have a problem using the ValidationSummary control in a C#
application. when a
RequiredFieldValidator error occurs, it is displayed twice in the
ValidationSummary control

i.e. * Enter Code
* Enter Code

A search on the error message (and control name) reveals only one
RequiredFieldValidator which can raise the error condition.

Code:
<asp:validationsummary id="ValidSummary" CssClass="NormalRed"
Runat="server" EnableClientScript="False" />
..
..
<asp:RequiredFieldValidator ID="Req1" ControlToValidate="CourseCode"
ErrorMessage="Enter Course Code" Runat="server"
EnableClientScript="False" />

Can anyone suggest something to try?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top