views:

198

answers:

1

I am planning on creating a templated user control to allow for the following markup.

  <myCustomControl id="myCustomControl" runat="server">
    <testObjects>
     <addPredefinedObject name="test1" />
     <addPredefinedObject name="test2" />
     <addCustomObject id="1" />
     <addPredefinedObject name="test3" />
     <addCustomObject id="2" />
    </testObjects>
  </myCustomControl>

From the control I need to be able to read through the testObjects list sequentially. The main point I would like to understand from this is whether it is possible to have a collection of 2 object types and read through them sequentially.

If anybody has some simple examples of how to accomplish this it would be much appreciated.

Many thanks,
Adam

A: 

Did you find any solution for this problem ??

mbakr