I have a custom control container, each of which has 2 controls. To display when one is enabled (i.e. a text box, or checkbox), and a label to display when disabled
I have overloaded render
like this:
Protected Override Subordonder (IW.VIIHtmlTextWriter as a system) if IEnabled then _item.RenderControl (Author) Else _display_text.RenderControl (Author) End Sub Sub
However, when I set the container, which is the enabled = incorrect
There is a table for me, I do not have the required functionality, but instead I am shading the text box and checkbox.
What happens when you set the parent's enabled
property? My impression was that it preached the situation to all its children, but it seems that I am wrong.
Thank you!
The short answer is that your assumption is actually false
if you like (And expanding WebControl, and your container has runat = server), you can use
if Naming Container Then enabled
instead of
But do not broadcast the properties below the tree in asp.
Comments
Post a Comment