I'm using a DataList object to display information from a SQL database to screen. I'm using several "labels" to display address information. I have 1 "label" for each line of the address (4 lines). Not all addresses have 4 lines of info.
How do I do a conditional to check for the existence of data to determine whether or not to show the label? Specifically, id "rsAddr2".
Thanks.
==========================
<asp:label id="rsAddr1" class="dbProfile" style="LEFT: 20px; TOP: 45px" runat="server" Width="200px" Height="21px"><%# DataBinder.Eval(Container.DataItem, "vwAddr1"
%></asp:label>
<asp:label id="rsAddr2" class="dbProfile" style="LEFT: 20px; TOP: 60px" runat="server" Width="200px" Height="21px"><%# DataBinder.Eval(Container.DataItem, "vwAddr2"
%></asp:label>
<asp:label id="rsCity" class="dbProfile" style="LEFT: 20px; TOP: 75px" runat="server" Width="200px" Height="21px"><%# DataBinder.Eval(Container.DataItem, "vwCity"
%>, <%# DataBinder.Eval(Container.DataItem, "vwState"
%> <%# DataBinder.Eval(Container.DataItem, "vwZip"
%></asp:label>
==========================
How do I do a conditional to check for the existence of data to determine whether or not to show the label? Specifically, id "rsAddr2".
Thanks.
==========================
<asp:label id="rsAddr1" class="dbProfile" style="LEFT: 20px; TOP: 45px" runat="server" Width="200px" Height="21px"><%# DataBinder.Eval(Container.DataItem, "vwAddr1"
<asp:label id="rsAddr2" class="dbProfile" style="LEFT: 20px; TOP: 60px" runat="server" Width="200px" Height="21px"><%# DataBinder.Eval(Container.DataItem, "vwAddr2"
<asp:label id="rsCity" class="dbProfile" style="LEFT: 20px; TOP: 75px" runat="server" Width="200px" Height="21px"><%# DataBinder.Eval(Container.DataItem, "vwCity"
==========================