Order of events for web control

Discussion in 'ASP .Net Web Controls' started by Shimon Sim, Apr 26, 2007.

  1. Shimon Sim

    Shimon Sim Guest

    I am creating a web control that has few template properties. One of them is
    marked as
    [TemplateInstance(TemplateInstance.Single)]

    For some reason code in Page_Load event returns null for all the controls
    nested in that template.

    I tried to debug and it seems that CreateChildControls() fires after pages
    Load event.

    Where should I initialize Template property?

    Thanks.

    Shimon
     
    Shimon Sim, Apr 26, 2007
    #1
    1. Advertising

  2. Shimon Sim

    Shimon Sim Guest

    I should of finish reading Nikhil Kothari post before implementing and
    posting

    Thanks,
    Shimon
    "Shimon Sim" <> wrote in message
    news:...
    >I am creating a web control that has few template properties. One of them
    >is marked as
    > [TemplateInstance(TemplateInstance.Single)]
    >
    > For some reason code in Page_Load event returns null for all the controls
    > nested in that template.
    >
    > I tried to debug and it seems that CreateChildControls() fires after
    > pages Load event.
    >
    > Where should I initialize Template property?
    >
    > Thanks.
    >
    > Shimon
    >
    >
     
    Shimon Sim, Apr 26, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?=

    order of events - dynamic checkbox events

    =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?=, Aug 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    566
    =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?=
    Aug 17, 2005
  2. Joe Iano

    user control and order of events in page

    Joe Iano, Jul 4, 2003, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    224
    Joe Iano
    Jul 7, 2003
  3. Eddie Chan

    Order of events called in a custom control

    Eddie Chan, Jan 25, 2006, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    220
    Teemu Keiski
    Jan 28, 2006
  4. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    373
    Chris
    Aug 30, 2005
  5. Mike Cain

    Control order of onLoad events that fire?

    Mike Cain, Oct 13, 2006, in forum: Javascript
    Replies:
    3
    Views:
    95
    Matt Kruse
    Oct 17, 2006
Loading...

Share This Page