Combining User Controls

Results 1 to 2 of 2

Thread: Combining User Controls

  1. #1
    Join Date
    Dec 1969

    Default Combining User Controls

    When using classic asp I used to make little Class objects or series of functions to build commonly used HTML for sites and put them all into a common include file. I am now attempting to use User Controls (ascx files) and am finding them very useful. My question is if there is a way to combine multiple ones into single files. I find myself with many &#039;@ Register&#039;s and was wondering if there was a more efficient way to do this.<BR><BR>Specifically I do things like make openPage and closePage controls for all of the applicable pages in a site.

  2. #2
    Join Date
    Dec 1969

    Default RE: Combining User Controls

    unfortunately, the answer to that is a big fat no... the only way you&#039;d be able to skimp on the imports is by putting all user controls in a .dll, then adding the controls to the page programmatically.<BR><BR>if that&#039;s no an option... there are always include files ;-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts