if statement inside Repeater ItemTemplate

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top