Sunday, March 11, 2012

Validation with 2 datagrids on one page

hi jodybannon:

in asp.net a validation occurs for all the fields of a form. So, that behaving u ar having is expected to occur

if u want both validations (datagrids) separately, I recommend u to use the enabled, so when u click one submit button, do enabled=false to the validation controls of the other datagrid, and viceversa

also, u have another way, but it requires more programming: use validation controls for one datagrid, and program mannually the validation for the other datagrid

I prefer the first solution, easier

if any pb, tell me

cheers

No comments:

Post a Comment