When you need complex logic on each row bound to a control, use the Data
Binding event for that control. It allows you to do tests and intercept as
needed. Example here:
http://msdn2.microsoft.com/en-us/lib...databound.aspx
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************************************************
| Think outside the box!
|
*************************************************
"Oleg" <Ol**@discussions.microsoft.comwrote in message
news:1F**********************************@microsof t.com...
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