G
Guest
my aspx has something like this
<asp:Repeater id="Repeater1" runat="server">
<ItemTemplate>
<mycontrol:ctl id="ctlId" obj='<%# Container.DataItem %>'
showItem="true"/>
</ItemTemplate>
/asp:Repeater>
The DataSource for this Repeater is a CollectionBase of objects and is
assigned and bound on Page_Load.
Now I have a Calendar control that fires a SelectionChanged. I want that to
crate a new Collection of objects based on the selected date and rebound.
However it doesn't seem to keep the Container.DataItem. The control shows a
null object however the static fields are passed (i.e. the showPass shows
"true" when debugging).
What am I doing wrong? Any help would be much appreciated.
<asp:Repeater id="Repeater1" runat="server">
<ItemTemplate>
<mycontrol:ctl id="ctlId" obj='<%# Container.DataItem %>'
showItem="true"/>
</ItemTemplate>
/asp:Repeater>
The DataSource for this Repeater is a CollectionBase of objects and is
assigned and bound on Page_Load.
Now I have a Calendar control that fires a SelectionChanged. I want that to
crate a new Collection of objects based on the selected date and rebound.
However it doesn't seem to keep the Container.DataItem. The control shows a
null object however the static fields are passed (i.e. the showPass shows
"true" when debugging).
What am I doing wrong? Any help would be much appreciated.