O
Oleg Slyusarchuk
This one should be a very simple one...
in a I Control (System.Web.UI.Control) have a property DefaultErrorContent
defined as:
// member variable
private string _errorContent;
[Browsable(true),
DefaultValue("There is a small problem. Don't worry."),
Description("Default content that will be shown at run-time when all the
recovery efforts fail")]
public string DefaultErrorContent
{
get { return _errorContent; }
set
{
_errorContent = value;
}
}
I can set this property at design time and everything works fine, saving
changed property inside of control's attribute.
BUT,
when I don't touch the value, I'd expect it to be set up to the
defaultValue, and this does not happen.
The errorContent == null when I check it.
What do I do wrong?
Thanks in advance
in a I Control (System.Web.UI.Control) have a property DefaultErrorContent
defined as:
// member variable
private string _errorContent;
[Browsable(true),
DefaultValue("There is a small problem. Don't worry."),
Description("Default content that will be shown at run-time when all the
recovery efforts fail")]
public string DefaultErrorContent
{
get { return _errorContent; }
set
{
_errorContent = value;
}
}
I can set this property at design time and everything works fine, saving
changed property inside of control's attribute.
BUT,
when I don't touch the value, I'd expect it to be set up to the
defaultValue, and this does not happen.
The errorContent == null when I check it.
What do I do wrong?
Thanks in advance