Blog on software engineering
Button click event causes a RequiredFieldValidator to fire in an ASP .NET DetailsView

Button click event causes a RequiredFieldValidator to fire in an ASP .NET DetailsView

If you use a linkbutton and a RequiredFieldValidator in an ASP .NET DetailsView template column. The linkbutton click event causes the RequiredFieldValidator to fire. If you don’t want the RequiredFieldValidator to fire when you push the linkbutton, set the CausesValidation property to false.

CausesValidation="false"

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.