Hi, I have in my schema a self referenced table storing regular expressions, which can be composed of a collection of child expressions I'd like to be able to bind the resulting hierarchical structure to an ascx control, with a child datalist for the child
expressions, the template applied to it being the control itself, and some buttons for adding/deleting child expressions The control implements ITemplate, and I can successfully build an arbitrary complex structure on the first postback. However, the inner
datalist are lost from the next postbacks. I suspect there is something tricky to work around with the viewstate, but I can't figure out what it is. Did anyone ever experience such a situation? I chose a datalist because I thought the viewstate capabilities
of that kind of controls prevented me for having to deal with dynamically building and persisting the complex control structure on each page load. Any explanation on my potential oversight, and an alternative solution, is more than welcome.
Jessynoo
Member
195 Points
39 Posts
Nested recursive ascx control implementing ITemplate applied to an inner datalist
Feb 08, 2005 09:46 PM|LINK
www.aricie.net
www.aricie.com