Display or Don't Display Data Based on Database Column

Last post 10-03-2006 4:19 PM by nebula3. 0 replies.

Sort Posts:

  • Display or Don't Display Data Based on Database Column

    10-03-2006, 4:19 PM
    • Member
      20 point Member
    • nebula3
    • Member since 04-08-2003, 9:18 AM
    • Posts 5

    I have a Form View control that I'm binding to a SQL Server database.

    Some of the info in the record that I call is going to be null so I dont want to display this info but I would like to display something else.
    Its simple in asp:

    <% if rs("CustID") <> "" then%>
            Name: <%=rs("CustName")%>
    <% else %>
           N/A
    <% end if %>

    Any help would be appreciated.

     

     

     

Page 1 of 1 (1 items)