B
Bob Jones
I can't get the text property of this label control I am exposing to
update in the designer (when I cange the label's text property) or
when rendered on a web page. However, if I cange the font property of
the label control it updates everthing! I know I am doing something
stupid-wrong. Anyone help?
public class SDNetLabelTextBox : ContainerBase,
ICompositeControlDesignerAccessor, ISDNetControl
{
private Label _label;
public SDNetLabelTextBox()
{
this._label = new Label();
this._label.ID += "_SDLabel";
this._label.Text = "SDNet LabelTextBox";
}
public override void RenderControl(HtmlTextWriter writer)
{
this._label.RenderControl(writer);
base.RenderControl(writer);
}
public Label Label
{
get { return this._label; }
set { this._label = value; }
}
#region ICompositeControlDesignerAccessor Members
void ICompositeControlDesignerAccessor.RecreateChildControls()
{
base.ChildControlsCreated = false;
EnsureChildControls();
}
#endregion
update in the designer (when I cange the label's text property) or
when rendered on a web page. However, if I cange the font property of
the label control it updates everthing! I know I am doing something
stupid-wrong. Anyone help?
public class SDNetLabelTextBox : ContainerBase,
ICompositeControlDesignerAccessor, ISDNetControl
{
private Label _label;
public SDNetLabelTextBox()
{
this._label = new Label();
this._label.ID += "_SDLabel";
this._label.Text = "SDNet LabelTextBox";
}
public override void RenderControl(HtmlTextWriter writer)
{
this._label.RenderControl(writer);
base.RenderControl(writer);
}
public Label Label
{
get { return this._label; }
set { this._label = value; }
}
#region ICompositeControlDesignerAccessor Members
void ICompositeControlDesignerAccessor.RecreateChildControls()
{
base.ChildControlsCreated = false;
EnsureChildControls();
}
#endregion