T
tshad
I have a page with many input variables and some are blank. I want to make
the row "not visible" if the field is blank.
For example:
<tr>
<td width="120" align="right" nowrap>
<asp:Label id="contactAddressHead" Text="Address:" runat="server"/>
</td>
<td>
<asp:Label id="contactAddress" TextMode="MultiLine" Columns="50"
rows="2" runat="server" />
</td>
</tr>
I tried to check contactAddress to see if it was blank and then make
contactAddressHead and contactAddress not visible, which it does. But the
line between the rows above and below are now larger.
What I need to do is make the row (tr) not visible. I thought about using
<div>, but how do I handle that in my server script?
Is there a better way?
Thanks,
Tom
the row "not visible" if the field is blank.
For example:
<tr>
<td width="120" align="right" nowrap>
<asp:Label id="contactAddressHead" Text="Address:" runat="server"/>
</td>
<td>
<asp:Label id="contactAddress" TextMode="MultiLine" Columns="50"
rows="2" runat="server" />
</td>
</tr>
I tried to check contactAddress to see if it was blank and then make
contactAddressHead and contactAddress not visible, which it does. But the
line between the rows above and below are now larger.
What I need to do is make the row (tr) not visible. I thought about using
<div>, but how do I handle that in my server script?
Is there a better way?
Thanks,
Tom