2014年7月13日 星期日

[RESOLVED] Validations controls causing problems


hello 


i am designing a form where there are some textboxes along with validations on the form and user is submiting data in the textboxes on click of save button.


also there is a datagrid in bottom of the form where data from table in the database is showing and ser is able to update the data in the grid delete row, update.


sometimes it happens that user just update or delete rows from the grid and don't enter the data in the textboxes which are also present on the form along with the validations and when user clicks update or delete button on grid that action don't takes place
instead validaions control shows errors. how to handel this problem?


thanx in advance 



Specify
ValidationGroup
property


I guess (not sure) if you use ValidationGroup only on Form validation, it will work. Set ValidationGroup property to all validators in Form and Also set ValidationGroup property of button


Or you can set different validation groups for form and gridview.


Regards



You can set other buttons causesvalidation="false"

沒有留言:

張貼留言