templates and user controls

Results 1 to 2 of 2

Thread: templates and user controls

  1. #1
    Join Date
    Dec 1969

    Default templates and user controls

    I have put together a page template that all of my site pages inherit from so that the design is consistent. The problem is that I have 2 user controls I have created also. In the user controls, I have both the html and the code behind which does quite a bit of logic stuff. When I run my page, I step through it and it appears that it executes and creates the instances of the controls, but when I add the control to the page's control collection, it doesn't display the html of the control. I'm guessing that it's not displaying the html of the control because as I stepped through it, it looked like the control's pageload function never fired. So, I'm assuming that if the page load never fires, that the logic in the code behind doesn't execute and then the html isn't being written out. Anyone have any ideas what I can do? Thanks.

  2. #2
    Join Date
    Dec 1969

    Default RE: templates and user controls

    try adding them into a placeholder instead of the page directly.<BR>

Posting Permissions

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