Methodology for designing user controls

Posted by zSysop on Stack Overflow See other posts from Stack Overflow or by zSysop
Published on 2010-05-14T14:26:03Z Indexed on 2010/05/14 14:34 UTC
Read the original article Hit count: 320

Hi all,

I want to able to create reusable user controls within my web app and i'm wondering on how to go about doing so.

  1. Should a user controls properties be visible to a form that's using it?
  2. What's the best way to go about loading the controls on the user control from the form thats using it? Should there be a public method within the control that allows you to load it from an external form or should the user control be loaded in the page load event
  3. Is it okay to nest user controls within user controls?

etc...

Thanks for any advice

© Stack Overflow or respective owner

Related posts about webforms

Related posts about asp.net-3.5