I am the one who has written the user control and it really has few buttons on it.
However, setting "CausesValidation = false" is the key here.
thanks for help, Bill.
"William F. Robertson, Jr." <> wrote in message news:<>...
> Look at the user control naviagation buttons.
>
> There should be a property CausesValidation.
>
> Set this to false for the user control. It will bypass any page validation.
>
> HTH,
>
> bill
>
> "AD" <> wrote in message
> news: om...
> > this may be a very simple thing but i am not able to figure it out;
> > I have a web form where I have several controls ( text boxes and drop
> > downs ) . Some of the text boxes have requiredfieldvalidator .Also
> > there is a validation summary that summarizes the errors.
> > there is a user control at the bottom that allows the the user to
> > navigate to other pages.
> > Here's my qyestion:
> > When user doesnot enter anything in the required fields, and clicks
> > one of the navigation buttons. I want the user to be able to leave
> > without having to enter anything in the form.
> > But the way I have it is now is that user is not able to leave page
> > without entering anything.
> > Remember that the navigation buttons are part of user control.
> > I played with disabling the validators but I am not able to figure out
> > where to put the diabling code.
> > I will appreciate any help;
> > thanks
|