Ask a Question related to ASP.NET Building Controls, Design and Development.
-
JesperA #1
Problem persisting asp.net 2.0 property in design-time
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
JesperA Guest
-
Issues Persisting Design time changes to page source
I have a Control which I'm designing the LiteGrid which has two properties "Columns" and "Actions". These properties are in turn Collections of... -
using the Items property in the design time property window
I hope this is the proper forum. I posted this problem in the wrong one previously. I have a custom server control that I am building. Implementing... -
Persisting control properties at design time
Hi cpnet, Thanks for your feedback. I have seen your concern. I am currently doing research on this issue, which need some time. I will reply... -
Properties not persisting at design time.
Guys Hope someone can help me! I'm having real problems getting properties I type against a control I have written at design time I have... -
Persisting Design-time generated value
I want to add a property to a control that will contain a GUID. This GUID. Should be generated at design time, when the control is dropped onto... -
Brennan Stehling #2
Re: Problem persisting asp.net 2.0 property in design-time
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...
[url]http://svn.offwhite.net/svn/SmallSharpTools.Messenger/trunk/ClassLibrary/Web/UI/Controls/ContactForm.cs[/url]
Look for the GetDesignTimeHtml method near the bottom.
Brennan Stehling
[url]http://brennan.offwhite.net/blog/[/url]
JesperA wrote:> 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....
>
> /JesperBrennan Stehling Guest



Reply With Quote

