G
Guest
Hello,
I have a web control I have developed that is derived from composite
control. On it, I have a property that is called IsBlahBlahVisibile.
When this property changes, it is supposed to hide or show a control
that is contained by it. I have associated a CompositeControlDesigner
class with the said web control, and overrode a single function
GetDesignTimeHtml. All this function does is renders the web control
to an HtmlTextWriter object and returns it as a string. When I debug
into this code using another instance of VS, the code is indeed called
and the property value IsBlahBlahVisible has the correct value when I
change that property in the designer. However, the design page is not
updated and the control is not redrawn. How do I get this control to
redraw when I change the property?
I have tried setting the RefreshProperties attribute and that doesn't
work. I've tried setting the NotifyParentProperty and that doesn't
work.
If I go from source view, back to design view after changing the
property, the control is redrawn and it appears correctly. But, I
would like to update the design time view for the control as soon as
the property value changes.
Where in the .NET Framework infrastructure do I need to update code so
that this above said functionality works?
Thanks,
Hammad
I have a web control I have developed that is derived from composite
control. On it, I have a property that is called IsBlahBlahVisibile.
When this property changes, it is supposed to hide or show a control
that is contained by it. I have associated a CompositeControlDesigner
class with the said web control, and overrode a single function
GetDesignTimeHtml. All this function does is renders the web control
to an HtmlTextWriter object and returns it as a string. When I debug
into this code using another instance of VS, the code is indeed called
and the property value IsBlahBlahVisible has the correct value when I
change that property in the designer. However, the design page is not
updated and the control is not redrawn. How do I get this control to
redraw when I change the property?
I have tried setting the RefreshProperties attribute and that doesn't
work. I've tried setting the NotifyParentProperty and that doesn't
work.
If I go from source view, back to design view after changing the
property, the control is redrawn and it appears correctly. But, I
would like to update the design time view for the control as soon as
the property value changes.
Where in the .NET Framework infrastructure do I need to update code so
that this above said functionality works?
Thanks,
Hammad