Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Gaurav Vaish \(www.Edujini-Labs.com\) #1
Re: Two User Controls: One gets called before the other
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:
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +1061
--
Happy Hacking,
Gaurav Vaish | [url]www.mastergaurav.com[/url]
[url]www.edujini-labs.com[/url]
[url]http://eduzine.edujinionline.com[/url]
-----------------------------------------
"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?
Gaurav Vaish \(www.Edujini-Labs.com\) Guest
-
communication between an application, custom controls, and user controls
Hi, and many thanks in advance... I'm a little lost about how to proceed with communication between an application, custom controls, and user... -
Why the properties of web user controls which inherted from my custom base UI controls MISSED?
Why the properties of web user controls which inherted from my custom base UI controls MISSED? How should I to set enable? -
using javascript in User controls to access server controls of the user control
Hello all, I have an asp.net textbox (named txtHidden) and an HtmlButton(named btnAction). I wanted to write a javascript function which will get... -
user controls: dynamiclly added child controls dont survive post back ?
hi, i have some strange behaviour: i've created a web user control that add's some child controls (e.g: textbox, image buttons) to its control... -
howto access controls in User Controls
"Derda" <safsar@luckyeye.com> wrote in news:e02BoShcDHA.1872 @TK2MSFTNGP12.phx.gbl: From the client bowser? You can't. -- Lucas Tam...



Reply With Quote

