Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > validationsummary duplicates errors

Thread Tools

validationsummary duplicates errors

Posts: n/a
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.

<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?
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SmartNavigation and Determining If ValidationSummary Caught Any Errors Dan Sikorsky ASP .Net Web Controls 3 12-02-2004 05:17 PM
Errors, errors, errors Mark Goldin ASP .Net 2 01-17-2004 08:05 PM
ValidationSummary NOT ok in Win XP ? mg ASP .Net 2 10-26-2003 02:12 PM
ValidationSummary ShowMessageBox HeaderText ? Gandalf ASP .Net 0 08-10-2003 06:35 PM
ValidationSummary Disappearing Act! John Mabbott ASP .Net 0 06-27-2003 03:51 PM