Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: validation controls question:asp.net

Reply
Thread Tools

Re: validation controls question:asp.net

 
 
William F. Robertson, Jr.
Guest
Posts: n/a
 
      08-15-2003
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



 
Reply With Quote
 
 
 
 
AD
Guest
Posts: n/a
 
      08-15-2003
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controls.Count, Controls.IsSynchronized, and Controls.SyncRoot Nathan Sokalski ASP .Net 4 09-05-2007 03:27 AM
where is the validation occurs for validation controls baroque Chou ASP .Net 4 01-24-2006 03:32 PM
Page appears to fail validation even though it has no validation controls =?Utf-8?B?ZGh1cndpdHo=?= ASP .Net 1 04-10-2004 07:37 AM
ASP.NET Web Forms Validation Controls are Server-Side or Client-Side Validation? Matt ASP .Net 14 01-30-2004 09:15 AM
Re: only custom validation control does server side validation? Colin Mackay ASP .Net 0 06-25-2003 07:54 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57