2007-04-05

Checklist with tips on how to write Custom Web Controls

When writing web controls make sure that you have done the following:

  • Assign your controls values the CreateChildControls event and ONLY there. I they get their values in the class declaration they will be reset every time the page loads (on postbacks)
  • Make sure that you inherit from the INamingContainer - if not you may not be able to pick up all events correctly (e.g. button clicked events)

More to come ...

No comments: