Codebehinds and Page_Load

Results 1 to 2 of 2

Thread: Codebehinds and Page_Load

  1. #1
    Join Date
    Dec 1969

    Default Codebehinds and Page_Load

    I created a class that holds all my page layout information. I am using a code behind to inherit the class so all the layout is done automatically. <BR><BR>My question is, if I use a code behind to inherit a class, can i still use the Page_Load event in a page. I really only want the one code behind and i want to use it for all the pages in the site. <BR><BR>Let me know if that makes sense or if I need to post some code.

  2. #2
    Join Date
    Dec 1969

    Default RE: Codebehinds and Page_Load

    Yes, you can use a single code-behind for all of the pages on a site.<BR><BR>The code-behind can have a PAGE_LOAD event. And, so can the individual pages.

Posting Permissions

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