Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.buildingcontrols
Re: Two User Controls: One gets called before the other
MasterGaurav \(www.edujini-labs.com\)
1/10/2007 11:01:00 AM
What do you mean by "getting called"?
The order of loading (and rendering) is:
ParentControl.OnLoad followed by AllChildren.OnLoad which implies that first
Load even of Parent control is trigerred followed by that of the child
controls.
Similarly, the default implementation in RenderControl method is to render
all child controls.
There's no escape.
IIRC, there's some private / internal method LoadRecursive (you can get it
by simply overriding OnLoad method and throwing an exception and then
seeting the stacktrace). You would get a stacktrace similar to below:
[quote]
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +1061
[/quote]
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini...
-----------------------------------------
"A Programmer" <AProgrammer@discussions.microsoft.com> wrote in message
news:41DEE3C5-4CF1-44A5-A23E-2D914C12D28B@microsoft.com...
>I am working on another developers stuff and he has Two user controls: a
> search UC and a grid UC the seach UC is embedding in the grid UC
> consequently
> the grid UC is getting called first and messing with my code. I need the
> search UC to get called first. I am leaning toward just taking the search
> UC
> out of the grid UC. Any other ideas?
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Two User Controls: One gets called before the other
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password