RequiredFieldValidator is logical and not

Last post 12-13-2005 11:05 AM by GerEielts. 2 replies.

Sort Posts:

  • RequiredFieldValidator is logical and not

    12-13-2005, 10:05 AM
    • Participant
      790 point Participant
    • GerEielts
    • Member since 09-06-2005, 11:29 AM
    • The Netherlands
    • Posts 158

    Hi,

    I like to do the following:

    Having 20 textboxes on a form with 20 RequiredFieldValidators. When the user fills in zero textboxes the ValidationSummary reports the messages. Now there is a Cancel-button on the form and when the user clicks on it, nothing happens. This is logical, because first of all the textboxes have to be filled in !

    But this is not logical, coz the user wants to quit the session by using the Cancel-button. I donot want the user leaves the page by using the x or backward-button. So what is the solution ?

     

    Help is appreciated, Ger.

     

    Ger (Carpe Diem)
  • Re: RequiredFieldValidator is logical and not

    12-13-2005, 10:59 AM
    • Contributor
      2,184 point Contributor
    • AndrewSeven
    • Member since 02-06-2004, 7:05 PM
    • Posts 437
    Specify causesvalidation=false on the cancel button
  • Betreft: Re: RequiredFieldValidator is logical and not

    12-13-2005, 11:05 AM
    • Participant
      790 point Participant
    • GerEielts
    • Member since 09-06-2005, 11:29 AM
    • The Netherlands
    • Posts 158

    Andrew,

     

    Thanks, fantastic. I didnot know this possibility.

    Regards from the North Sea, Ger.

     

    Ger (Carpe Diem)
Page 1 of 1 (3 items)