Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Order of controls loaded

Reply
Thread Tools

Order of controls loaded

 
 
et
Guest
Posts: n/a
 
      02-06-2005
What dictates the order of user controls loaded? If I have 3 user controls
on my default page, for instance, say a header control, menu control, and
details control.

Why is it ALWAYS that the menu control is loaded last, so that the details
page is not loaded according to the menu item selected. Why is this
backward. Do I need to name them something special, or trick ti somehow so
that it doesn't know it's a menu control? I know this sounds silly, but no
matter what I do, the controls are not loaded in the order I need them.


 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      02-06-2005
You should consider putting your control-dependent code in the PreRender
event instead of the Load event.
The PreRender event happens after all controls have been loaded, therefore
you'll have a more reliable state to work with.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"et" <> wrote in message
news:uuI5RS$...
> What dictates the order of user controls loaded? If I have 3 user
> controls on my default page, for instance, say a header control, menu
> control, and details control.
>
> Why is it ALWAYS that the menu control is loaded last, so that the details
> page is not loaded according to the menu item selected. Why is this
> backward. Do I need to name them something special, or trick ti somehow
> so that it doesn't know it's a menu control? I know this sounds silly,
> but no matter what I do, the controls are not loaded in the order I need
> them.
>



 
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
Dynamically Loaded controls loading other controls =?Utf-8?B?V291dGVy?= ASP .Net 3 02-27-2006 07:25 PM
java -verbose doesn't show "loaded from" for classes loaded from custom jars in the classpath Udo Corban Java 0 01-23-2004 09:32 AM
In which order are files looked for when loaded/requierd - and what'sthe order of suffixes? Stephan Kämper Ruby 2 01-18-2004 02:07 PM
Output Caching for Dynamically Loaded User Controls Teo Lachev ASP .Net 0 07-01-2003 12:16 PM
Re: how to programatically give assembly loaded from network the same trust as those loaded from local host? Marcelo Birnbach [MS] ASP .Net 0 06-27-2003 11:51 PM



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