J
John Saunders
Does anyone have, or can anyone point me to, an example showing how to
default a property of a control to the ID field? If I do this:
public string Text
{
get {return _text == null ? this.ID : _text;}
set {_text = value; ChildControlsCreated = false;}
}
When the control is first dragged onto the page, the Text property has the
correct value in the property browser, but is incorrect in the designer.
It's even correct in the .aspx file.
I know I've seen the answers to this somewhere before, but can't figure it
out right now!
John Saunders
default a property of a control to the ID field? If I do this:
public string Text
{
get {return _text == null ? this.ID : _text;}
set {_text = value; ChildControlsCreated = false;}
}
When the control is first dragged onto the page, the Text property has the
correct value in the property browser, but is incorrect in the designer.
It's even correct in the .aspx file.
I know I've seen the answers to this somewhere before, but can't figure it
out right now!
John Saunders