I
info
Hi,
This is an implementation question / best practice question.
I have created a number of data input part-forms as usercontrols and
include these on complete form web pages as needed. The parent pages
provide the submit button and a validation summary. The usercontrols
have inputs and validators.
When the submit button is pressed on the parent is it better to:
- have the usercontrols listen for an event and validate and/or save
the data.
- or for the usercontrols to inherit a specialised base class
(inherited from usercontrol) that provides public methods for calling
save and validate for each part form?
TIA
This is an implementation question / best practice question.
I have created a number of data input part-forms as usercontrols and
include these on complete form web pages as needed. The parent pages
provide the submit button and a validation summary. The usercontrols
have inputs and validators.
When the submit button is pressed on the parent is it better to:
- have the usercontrols listen for an event and validate and/or save
the data.
- or for the usercontrols to inherit a specialised base class
(inherited from usercontrol) that provides public methods for calling
save and validate for each part form?
TIA