Hi!
I have a asp.net 2.0 webcontrol with a property called TestProp (type:
string), if i change value in the property-window in vs.net manually
everything works fine. The value is persisted to the HTML-source.
But if I connect a designer and change the value in code (opening the
desigen from design-mode in vs.net), the value looks changed in the
property-window but it is NOT persisted to the HTML-source.
What am I doing wrong! I have tried everyting....
/Jesper
Brennan Stehling - 18 Oct 2006 19:13 GMT
Jesper,
You will want to have the designer save the values you set in the
Properties window and then set the values in the controls as you want
to see them in Design Mode, and then restore the saved values.
You can see an example of this in a control I created...
http://svn.offwhite.net/svn/SmallSharpTools.Messenger/trunk/ClassLibrary/Web/UI/
Controls/ContactForm.cs
Look for the GetDesignTimeHtml method near the bottom.
Brennan Stehling
http://brennan.offwhite.net/blog/
> Hi!
>
[quoted text clipped - 8 lines]
>
> /Jesper