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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Validation Control

Validation Control

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-net
3 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.
  • T Offline
    T Offline
    Tiger456
    wrote on last edited by
    #1

    Hai I am using AsP.NET Validation control. When a Validation error occur i need to Focus the corresponding control, Without any postback. please help to solve this problem Thanks and Regards

    I 2 Replies Last reply
    0
    • T Tiger456

      Hai I am using AsP.NET Validation control. When a Validation error occur i need to Focus the corresponding control, Without any postback. please help to solve this problem Thanks and Regards

      I Offline
      I Offline
      israeli
      wrote on last edited by
      #2

      I'm not certain it's the best solution but I guess it works. Every control that may have wrong input must have an event that correspons to the change. For example: in a TextBox control. Now you can make the function (in this example: OnTextChanged) with an algorithm that searches for the validator with the error and focuses the relevant control. In order to find the validator with the error use the interface Ivalidator and Validors. Bye

      1 Reply Last reply
      0
      • T Tiger456

        Hai I am using AsP.NET Validation control. When a Validation error occur i need to Focus the corresponding control, Without any postback. please help to solve this problem Thanks and Regards

        I Offline
        I Offline
        israeli
        wrote on last edited by
        #3

        I'm not certain it's the best solution but I guess it works. Every control that may have wrong input must have an event that corresponds to the change. For example: in a TextBox control. Now you can make the function (in this example: OnTextChanged) with an algorithm that searches for the validator with the error and focuses the relevant control. In order to find the validator with the error use the interface Ivalidator and Validors. Bye

        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