ValidationSummary

ansrikanth

New member
Joined
Oct 8, 2006
Messages
4
Programming Experience
1-3
Hi all,

I need to know that, " Is there any way to supress the validationSummary control's error messge which is coming at every postback????"

Let me explain you clearly what i wish to do.

Im having a page which is having some textboxes and buttons..almost all the textboxes are having validaiton controls and at the end there is a validationSummary control for which "Showmessagebox" Property setted to TRUE.By this when ever i press any button in the form it was showing error box.

I want to supress that error box and it shoul have to come by pressing of submit button only...

Is it possible to do like this????

Thnx.
 
Of course this is possible.

Make sure you don't have Autopostback=true set for those controls. Otherwise they will do a postback and try to validate the control automatically.

You can see this in action at http://www.goturls.com.

Try sign up as a new user and fill in the form but try to create as many error on the form as you can.

Brian
http://Brian-Dao.blogspot.com
 
If you need those other buttons or controls to perform a postback without causing validation, set the control's CausesValidation property to false.

A good example of this use is a cancel button.
 
Back
Top