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