Link to home
Start Free TrialLog in
Avatar of Ed
EdFlag for United Kingdom of Great Britain and Northern Ireland

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:Label></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:ListItem>
                        <asp:ListItem>No</asp:ListItem>
                    </asp:DropDownList></td>
                <td style="width: 100px; height: 15px">
                </td>
            </tr>
Avatar of Ed
Ed
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

my code langage is VB
ASKER CERTIFIED SOLUTION
Avatar of noulouk
noulouk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ed

ASKER


It does help and  and excellent solution.

Wouldn't have though of that.  A*