Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP .Net Building Controls
Help with using a custom collection as a property for a TextBox derrived control.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Chris Crowe [MVP]" data-source="post: 4255327"><p>Hi</p><p></p><p>I am creating a new TextBox control but I am having problems when I am</p><p>trying to add my own collection to the control and persisting the values to</p><p>the asp.net web page.</p><p></p><p>This is my code for the collection property</p><p></p><p>[PersistenceMode(PersistenceMode.InnerProperty)]</p><p>public LookupEditControlColumns ListColumns</p><p></p><p>This is correctly persisting the data as follows:</p><p></p><p><cc1:lookupeditcontrol id="LookupEditControl2" runat="server"</p><p>PopupWindow="True" LookupURL="search.aspx?ctrl=name&amp;v="></p><p><ListColumns></p><p><cc1:LookupEditControlColumn Width="100%"></cc1:LookupEditControlColumn></p><p></ListColumns></p><p></cc1:lookupeditcontrol></p><p></p><p>But when you open the .aspx page I get the following problem.</p><p></p><p>The text property of the control contains the following</p><p></p><p><ListColumns></p><p><cc1:LookupEditControlColumn</p><p>Width="100%"></cc1:LookupEditControlColumn></p><p></ListColumns></p><p></p><p>and my collection is empty.</p><p></p><p>How do I handle this situation?</p><p></p><p>Is there anything else I must do when I want to persist my custom collection</p><p>properties?</p><p></p><p>--</p><p>Cheers</p><p></p><p>Chris</p><p></p><p>Chris Crowe [IIS MVP]</p></blockquote><p></p>
[QUOTE="Chris Crowe [MVP], post: 4255327"] Hi I am creating a new TextBox control but I am having problems when I am trying to add my own collection to the control and persisting the values to the asp.net web page. This is my code for the collection property [PersistenceMode(PersistenceMode.InnerProperty)] public LookupEditControlColumns ListColumns This is correctly persisting the data as follows: <cc1:lookupeditcontrol id="LookupEditControl2" runat="server" PopupWindow="True" LookupURL="search.aspx?ctrl=name&v="> <ListColumns> <cc1:LookupEditControlColumn Width="100%"></cc1:LookupEditControlColumn> </ListColumns> </cc1:lookupeditcontrol> But when you open the .aspx page I get the following problem. The text property of the control contains the following <ListColumns> <cc1:LookupEditControlColumn Width="100%"></cc1:LookupEditControlColumn> </ListColumns> and my collection is empty. How do I handle this situation? Is there anything else I must do when I want to persist my custom collection properties? -- Cheers Chris Chris Crowe [IIS MVP] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP .Net Building Controls
Help with using a custom collection as a property for a TextBox derrived control.
Top