Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

In my page have some required field validation controls. these required validations should fire only some button click events. For firing required field validators only in some required button click events, set CausesValidation='True' and for remaining buttons set CausesValidations='True'. Its working fine. But the problem is my page also have grid(HTML Table). In that grid have two image buttons edit and delete. These image buttons are created dynamically based on database values. But my requirement is required field validations should not fire in edit and delete image button click events. problem is required field validations are fired even though set CausesValidation='False' for image buttons.
Posted
Updated 5-Nov-12 23:54pm
v3

1 solution

Try By Setting buttons property "UseSubmitBehaviour=False"


C#
BtnDisplay.UseSubmitBehaviour=False
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900