Didn't work. Same behavior: change the property, the other one appears to
change at property editor, but when I look at HTML source, it steels with the
old value.
"LBushkin" wrote:
> tag the property that conditionally changes the other with the attribute
>
> [RefreshProperties(RefreshProperties.All)]
>
>
> "Mateus Padovani Velloso" wrote:
>
> > Hi,
> >
> > This seems to be a simple problem, but I am unable to figure out what is
> > wrong:
> >
> > I have a Web Custom Control, with two properties (both are strings).
> >
> > When I change these properties in the property editor, everything goes ok,
> > and the attributes in page reflect the change.
> >
> > But now I want to include a simple code in this custom control that changes
> > one of these properties when I change the other one, right?
> >
> > Well, now, at design-time, when I change the first property, the second
> > seems to change too (shows at property editor as if the code worked fine),
> > but when I see the html source, the attribute of the second property has not
> > changed, and if I close and reopen the page, the old value comes back also at
> > property editor.
> >
> > So, the question is: How can I persist a property that was changed at
> > design-time, but not directly in the property editor, but by a code called at
> > design-time from other property?
> >
> > Thanks!
|