web usercontrol + delegates or specialised usercontrol base class

Discussion in 'ASP .Net' started by info@record-play.com, Jun 23, 2006.

  1. Guest

    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
     
    , Jun 23, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tomek
    Replies:
    2
    Views:
    681
    Andrey Tarasevich
    Dec 1, 2003
  2. Alf P. Steinbach
    Replies:
    6
    Views:
    549
    John Carson
    Sep 3, 2005
  3. Hicham Mouline
    Replies:
    1
    Views:
    593
    Victor Bazarov
    Apr 20, 2009
  4. Kan Grewal

    Web Usercontrol in a Web Usercontrol not displaying...

    Kan Grewal, Jul 6, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    117
    Kan Grewal
    Jul 7, 2004
  5. Karan Rajput
    Replies:
    2
    Views:
    145
    Abinoam Jr.
    Dec 22, 2010
Loading...

Share This Page