validationsummary duplicates errors

Discussion in 'ASP .Net Web Controls' started by Netwhiz, Feb 17, 2005.

  1. Netwhiz

    Netwhiz Guest

    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?
    Netwhiz, Feb 17, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Mabbott

    ValidationSummary Disappearing Act!

    John Mabbott, Jun 27, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    442
    John Mabbott
    Jun 27, 2003
  2. Gandalf
    Replies:
    0
    Views:
    465
    Gandalf
    Aug 10, 2003
  3. mg
    Replies:
    2
    Views:
    543
  4. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    916
    Mark Goldin
    Jan 17, 2004
  5. Dan Sikorsky
    Replies:
    3
    Views:
    227
    Viksi
    Dec 2, 2004
Loading...

Share This Page