web usercontrol + delegates or specialised usercontrol base class

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top