J
Jowita
I have a simple composite control with the following attributes:
[
Bindable(true),
Category("Appearance"),
DefaultValue("Enter name:"),
Description("The text for the name label.")
]
public string NameLabelText
{
get
{
EnsureChildControls();
return nameLabel.Text;
}
set
{
EnsureChildControls();
nameLabel.Text = value;
}
}
However, when I drop the control on the page, the property is NOT set
to the DefaultValue. It is blank.
Can someone help me and explain why the default value doesn't work?
Thanks
J
[
Bindable(true),
Category("Appearance"),
DefaultValue("Enter name:"),
Description("The text for the name label.")
]
public string NameLabelText
{
get
{
EnsureChildControls();
return nameLabel.Text;
}
set
{
EnsureChildControls();
nameLabel.Text = value;
}
}
However, when I drop the control on the page, the property is NOT set
to the DefaultValue. It is blank.
Can someone help me and explain why the default value doesn't work?
Thanks
J