开发者

how to restrict validatin check on gridview button click in c#?

开发者 https://www.devze.com 2023-04-04 02:33 出处:网络
I have form that have some fields with requireFieldValidation and also Gridview with edit and cancel button

I have form that have some fields with requireFieldValidation and also Gridview with edit and cancel button

When I try to edit gridview it asks me for fullfill requireFieldValidation first.

I have some idea that I need to change some property to true to false in gridview but not exaclty knowing what?

Am I right? Or need some code to restrict this vali开发者_运维技巧dation on gridview edit?


To ignore the validation rules added via ASP.NET Validation Control for the Button/LinkButton/ImageButton, set value of CausesValidation property to false. Also set ValidationGroup property for each control, it allow you to organize validation controls on a page as a set.


Set CausesValidation='false' on the edit button

0

精彩评论

暂无评论...
验证码 换一张
取 消