Hi, I have a datalist that is used in conjunction to display values
retrieved from a database:

What I would like to do is check the value of a field and then do something
(Change a label or whatever).
Below is my code
VB Code:
  1. ' Create a datalist
  2. <asp:DataList id="MyList" RepeatColumns="2" runat="server">
  3.          <ItemTemplate>
  4.           <table border="0" width="272">
  5.            <tr>
  6.             <td width="25">
  7.              &nbsp
  8.             </td>
  9. ' I would like to check the value of the following item and then do
  10. ' something if the item is less than 0
  11. ' e.g  if DataBinder.Eval(Container.DataItem, "UnitCost", "{0:c}") < 0
  12. ' then response.write("hi")
  13.              <span class="ProductListItem">
  14.               <%# DataBinder.Eval(Container.DataItem, "UnitCost", "{0:c}")
  15. %>
  16.              </span>

Any help appreciated

Cheers
Mark