T
Theodor Ramisch
Hi there,
i got a Repeater control which repeats through some rows and should
display
a WebControl depending on a value of the row:
It should be something like that:
<asp:Repeater ID="Filters" runat="server" DataSource="<%#obj.arr%>">
<ItemTemplate>
<% if(DataBinder.Eval(Container,"DataItem.type"))=="TEXT") { %>
<asp:textbox runat="server" />
<% } else { %>
<asp:calender runat="server" />
<% } %>
</ItemTemplate>
</asp:Repeater>
But this, of course, doesn't work because the Container is only avaiable
in <%# but not for <%. Is there any solution to realize this? I can't
use
just the CodeBehind to create the controls because the controls must be
colored and skinned by HTML-Only-dont-want-to-look-in-cs-files
Designers...
Best regards,
Theodor
i got a Repeater control which repeats through some rows and should
display
a WebControl depending on a value of the row:
It should be something like that:
<asp:Repeater ID="Filters" runat="server" DataSource="<%#obj.arr%>">
<ItemTemplate>
<% if(DataBinder.Eval(Container,"DataItem.type"))=="TEXT") { %>
<asp:textbox runat="server" />
<% } else { %>
<asp:calender runat="server" />
<% } %>
</ItemTemplate>
</asp:Repeater>
But this, of course, doesn't work because the Container is only avaiable
in <%# but not for <%. Is there any solution to realize this? I can't
use
just the CodeBehind to create the controls because the controls must be
colored and skinned by HTML-Only-dont-want-to-look-in-cs-files
Designers...
Best regards,
Theodor