Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. ValidationSummary not displaying RegularExpressionValidator results?

ValidationSummary not displaying RegularExpressionValidator results?

Scheduled Pinned Locked Moved ASP.NET
regexhelpcssquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jojoba2011
    wrote on last edited by
    #1

    I have a page with a few validation controls and a ValidationSummary control. Most of the validation controls are RequiredFieldValidator controls and the summary control displays these messages just fine. I do have a RegularExpressionValidator that checks for the format of an email address. If the address isn't entered correctly my error message from this control isn't being displayed by my summary control. I know the problem isn't with my regular expression as I can display the error message by the regex control if I change the Display setting. ValidationSummary doesn't just work with RequiredFieldValidator does it? That would be less than helpful. My code :

    Thanks.

    _ 1 Reply Last reply
    0
    • J jojoba2011

      I have a page with a few validation controls and a ValidationSummary control. Most of the validation controls are RequiredFieldValidator controls and the summary control displays these messages just fine. I do have a RegularExpressionValidator that checks for the format of an email address. If the address isn't entered correctly my error message from this control isn't being displayed by my summary control. I know the problem isn't with my regular expression as I can display the error message by the regex control if I change the Display setting. ValidationSummary doesn't just work with RequiredFieldValidator does it? That would be less than helpful. My code :

      Thanks.

      _ Offline
      _ Offline
      _Amy
      wrote on last edited by
      #2

      Hi, Set the DisplayMode="Dynamic" and remove EnableClientScript attribute from your ValidationSummary.

      Read the article "Table Valued Parameters". --Amit

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups