?
=?iso-8859-1?Q?C=E9dric?=
Hi,
Is there any easy way to have a condition in a repeater?
I would like to do something like this (of course this
does not work):
<asp:Repeater id="rpt" runat="Server">
<ItemTemplate>
<%# if DataBinder.Eval
(Container.DataItem, "MyField").ToString() ) == "X" {
response.write "ABC";
} else {
response.write "EFG";
}
%>
</ItemTemplate>
</asp:Repeater>
Thx for your help!
\Cédric
Is there any easy way to have a condition in a repeater?
I would like to do something like this (of course this
does not work):
<asp:Repeater id="rpt" runat="Server">
<ItemTemplate>
<%# if DataBinder.Eval
(Container.DataItem, "MyField").ToString() ) == "X" {
response.write "ABC";
} else {
response.write "EFG";
}
%>
</ItemTemplate>
</asp:Repeater>
Thx for your help!
\Cédric