Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Donal McWeeney #1
Determine if custom control is being added dynamically?
Hi,
Is it possible to determine in your custom control code if it is being added
to the control hierarchy through page parsing or being added dynamically via
code.
Thanks
Donal
Donal McWeeney Guest
-
Managing ViewState of a dynamically created Custom Composite Server Control -(where the original is also dynamically created)
Ok here's my scenario. I have a Custom Composite Server Control (CCSC) consisting of a TextBox, Button & Panel. (And some other code - which I... -
Dynamically adding a custom control
Steven Im getting in a bit of a mess with this. What I want to end up with is a set of controls for editing / displaying fields on a webform. I... -
Handle Event of Dynamically Added User Control
Hi There! How to handle the events of a dynamically added user control? e.g. I have following code... Dim myUserControl as Object =... -
How determine type of DataItem in custom control??
Hello, i have a control inheriting from the DataRepeater control. It has a property which is the name of a Column/Property to run subtotals on from... -
How to find control dynamically added in the header
Pls any body tell me how can i find the control added in the following way : Protected Overrides Sub OnItemDataBound(ByVal e As... -
Janaka #2
Re: Determine if custom control is being added dynamically?
You can check where it is in the Page's controls hierarchy? I usually use
a PlaceHolder class to place my dynamically added controls in
"Donal McWeeney" <macker@newsgroup.nospam> wrote in message
news:OsUsBN%23nEHA.644@tk2msftngp13.phx.gbl...> Hi,
>
> Is it possible to determine in your custom control code if it is being
> added to the control hierarchy through page parsing or being added
> dynamically via code.
>
> Thanks
>
> Donal
>
Janaka Guest
-
Donal McWeeney #3
Re: Determine if custom control is being added dynamically?
Thanks...
"Janaka" <janakaf@hotmail.com> wrote in message
news:OFV7FsKoEHA.3324@TK2MSFTNGP12.phx.gbl...> You can check where it is in the Page's controls hierarchy? I usually
> use a PlaceHolder class to place my dynamically added controls in
> "Donal McWeeney" <macker@newsgroup.nospam> wrote in message
> news:OsUsBN%23nEHA.644@tk2msftngp13.phx.gbl...>>> Hi,
>>
>> Is it possible to determine in your custom control code if it is being
>> added to the control hierarchy through page parsing or being added
>> dynamically via code.
>>
>> Thanks
>>
>> Donal
>>
>
Donal McWeeney Guest



Reply With Quote

