C
Chris Crowe [MVP]
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]
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]