Hi. I used the following code.  Its a label inside a table inside the 
item template of a DataList.  Im trying to check for null values in 
the field. What's wrong with my code? Sorry, Im new to ASP and am 
still quite confused on how to properly use the <%# %> tags. :(

<TD style="VERTICAL-ALIGN: baseline; WIDTH: 20px; TEXT-ALIGN: center">
<%#If Not DataBinder.Eval(Container.DataItem,"load_optn_c") Is Null 
Then %> 
      &nbsp;
<%#Else%>
      <asp:Label id="lblOC" runat="server" Font-Names="Arial" Font-
Size="XX-Small" text='<%# DataBinder.Eval
(Container.DataItem,"load_optn_c")%>' Width="20px">     
      </asp:Label>
<%#End If%>
</TD>

Jeff



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to