if statement inside Repeater ItemTemplate

  • Thread starter Thread starter Oleg
  • Start date Start date
O

Oleg

using .net 2.0
Trying to put condition on current value in repeater in this manner:
<% if(<%# DataBinder.Eval(Container.DataItem, "FROM_NET") != "Hourly
Rate")%> %>
<asp:TextBox Value='<%# DataBinder.Eval(Container.DataItem, "DELIVERY")
%>' runat="server"/>
<% else %>
<asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "DELIVERY") %>'
runat="server"/>

Of course that doesn't work.
Please, need some help may be with syntax or work around for this problem.
Thanks,
Oleg
 
Back
Top