Connecting Tech Pros Worldwide Forums | Help | Site Map

.NET(validation)

Newbie
 
Join Date: Sep 2008
Posts: 12
#1: Sep 22 '08
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 PRR is offline
Moderator
 
Join Date: Dec 2007
Location: India
Posts: 702
#2: Sep 22 '08

re: .NET(validation)


Quote:

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
Reply