.NET(validation)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smithak82
    New Member
    • Sep 2008
    • 12

    .NET(validation)

    In my form there are two textboxs in which i have applied required field validator.
    I have two button one is add and one is clear.
    what happen is if there is nothing entered in textboxes
    and if i click on Clear button It display the validation error msg.
    I dont want it to happen with clear button .
    only when i click on add button it should happen.
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    Originally posted by smithak82
    In my form there are two textboxs in which i have applied required field validator.
    I have two button one is add and one is clear.
    what happen is if there is nothing entered in textboxes
    and if i click on Clear button It display the validation error msg.
    I dont want it to happen with clear button .
    only when i click on add button it should happen.
    Theres a button property CauseValidation ... Setting to to false will disable validation for that button

    Comment

    Working...