Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Order of events for web control

Reply
Thread Tools

Order of events for web control

 
 
Shimon Sim
Guest
Posts: n/a
 
      04-26-2007
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


 
Reply With Quote
 
 
 
 
Shimon Sim
Guest
Posts: n/a
 
      04-26-2007
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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control order of onLoad events that fire? Mike Cain Javascript 3 10-17-2006 02:24 PM
Order of events called in a custom control Eddie Chan ASP .Net Building Controls 1 01-28-2006 12:45 PM
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
order of events - dynamic checkbox events =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?= ASP .Net 0 08-17-2005 10:36 PM
user control and order of events in page Joe Iano ASP .Net Building Controls 2 07-07-2003 02:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57