Hi everyone, I'm having trouble with an if statement in ASP.NET. I have a page that pulls Items of interest from a database. Some of these fields are empty. I want to check if the fields are either blank or <null>, and if not, then it gets outputed (if thats a word) to the datalist. For example, here is one line of the datalist:
<%# DataBinder.Eval(Container.DataItem, "LastBoot") %>
I know i can make an if statement like:
<% If blah then blah %>
How may i combine these two to check if the field "LastBoot" is null or empty and then skip it if it is and don't if it is not.
Thank you for any help you provide.
Jon
<%# DataBinder.Eval(Container.DataItem, "LastBoot") %>
I know i can make an if statement like:
<% If blah then blah %>
How may i combine these two to check if the field "LastBoot" is null or empty and then skip it if it is and don't if it is not.
Thank you for any help you provide.
Jon