C
cope.andrew
Hi
I've developed an ASP.NET server control with 2 properties, PropertyA
and PropertyB. The setter for PropertyB uses the value of PropertyA to
perform some checking when set at designtime.
When the aspx page is opened in the designer, the properties are read
in from the aspx markup but the order the properties are set can't be
guarenteed. Sometimes the setter for PropertyB is called before the
setter for PropertyA and the code falls over.
Is there a way, at designtime, to get round this? E.g. force one
property to be set from the designer before another etc?
Cheers
Andy
I've developed an ASP.NET server control with 2 properties, PropertyA
and PropertyB. The setter for PropertyB uses the value of PropertyA to
perform some checking when set at designtime.
When the aspx page is opened in the designer, the properties are read
in from the aspx markup but the order the properties are set can't be
guarenteed. Sometimes the setter for PropertyB is called before the
setter for PropertyA and the code falls over.
Is there a way, at designtime, to get round this? E.g. force one
property to be set from the designer before another etc?
Cheers
Andy