Ed
asked on
Make table row invisible or visible
Is there anyway to make the whole row of a table visible or not?
I can hide or show form items and labels etc.. depanding on a postback result but i can't work out how to get a whole table row to show or not depending on postback.
Code for row i want to hide
<tr>
<td style="width: 297px; height: 15px">
<asp:Label ID="lbSelfEmployed" runat="server" Text="If self employed, are accounts available?"
Visible="False"></asp:Labe l></td>
<td style="width: 291px; height: 15px">
<asp:DropDownList ID="ddlSelfEmployed" runat="server" Font-Names="Verdana" Width="120px" Visible="False">
<asp:ListItem Selected="True">Please select</asp:ListItem>
<asp:ListItem>Yes</asp:Lis tItem>
<asp:ListItem>No</asp:List Item>
</asp:DropDownList></td>
<td style="width: 100px; height: 15px">
</td>
</tr>
I can hide or show form items and labels etc.. depanding on a postback result but i can't work out how to get a whole table row to show or not depending on postback.
Code for row i want to hide
<tr>
<td style="width: 297px; height: 15px">
<asp:Label ID="lbSelfEmployed" runat="server" Text="If self employed, are accounts available?"
Visible="False"></asp:Labe
<td style="width: 291px; height: 15px">
<asp:DropDownList ID="ddlSelfEmployed" runat="server" Font-Names="Verdana" Width="120px" Visible="False">
<asp:ListItem Selected="True">Please select</asp:ListItem>
<asp:ListItem>Yes</asp:Lis
<asp:ListItem>No</asp:List
</asp:DropDownList></td>
<td style="width: 100px; height: 15px">
</td>
</tr>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It does help and and excellent solution.
Wouldn't have though of that. A*
ASKER