Nate Bross Posted September 8, 2006 Posted September 8, 2006 I am just wondering if there is a way I can check to see if one of my columns is empty before I display it in my repeater control. <table width="100%"> <tr> <td> <p> <i>Materials: <%#DataBinder.Eval(Container.DataItem, "Materials", "{0:c}")%></i> </p> </td> <td> <p> <i>Tuition: <%#DataBinder.Eval(Container.DataItem, "Tuition","{0:c}") %></i> </p> </td> </tr> </table> I want to make sure that the Materials cost is <> 0. If it is <> 0 I want to do what is above, if it's = 0 I want to skip that entire <td>...</td> section Thanks! Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.