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 problem

Validation problem

Scheduled Pinned Locked Moved ASP.NET
3 Posts 3 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.
  • S Offline
    S Offline
    saravanan05
    wrote on last edited by
    #1

    hi In my page, I have one txtbox and one button then i have imageupload control and button here i did required field validator.. my proble is if i click imageupload control button ,here txtbox is empty..here also required field validator working. how i can prevent this? regards sara

    Known Is Drop.Unknown Is Ocean

    S D 2 Replies Last reply
    0
    • S saravanan05

      hi In my page, I have one txtbox and one button then i have imageupload control and button here i did required field validator.. my proble is if i click imageupload control button ,here txtbox is empty..here also required field validator working. how i can prevent this? regards sara

      Known Is Drop.Unknown Is Ocean

      S Offline
      S Offline
      SunithaNallana
      wrote on last edited by
      #2

      Hi, Assign validation group. ie. put txtbox, button and validation control in one group

      1 Reply Last reply
      0
      • S saravanan05

        hi In my page, I have one txtbox and one button then i have imageupload control and button here i did required field validator.. my proble is if i click imageupload control button ,here txtbox is empty..here also required field validator working. how i can prevent this? regards sara

        Known Is Drop.Unknown Is Ocean

        D Offline
        D Offline
        dotnetmember
        wrote on last edited by
        #3

        hi sara, this is coz u may b having required field validator 4 both text boxes.Hope on first button click, u want first text box to be validated and on second button click, u want fileupload control to be validated.To incorporate this, use validation group property with validator control and buttons. set ValidationGroup of first validator control and its button to some value(a) and ValidationGroup of 2nd validator control and its button to some value(b). Happy Coding... Sofia

        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