controls hiding

  • Thread starter Thread starter abcd
  • Start date Start date
A

abcd

I have 3 controls placed in a table in each row

Row1 --> DropDownlist Web server control
Row2 --> Text box control
Row3--> list box control
Row 4--> update and delete buttons

each control has associated lable control too.

my Question:-

Depending upon certain values in Dropdownlist control I want to make either
Row2 controls visible or Row 3 controls visible. When I use the visible
property of these controls that works but the visual appearence is not too
good.

Say, if Row3 controls are displayed and Row2 controls are set to visible =
false then there is a gap of eqivalent space of Row2. How can I dynamically
shift Row3 and Row 4 controls to up.

Is there any alternate solution for this

Thanks
 
I have 3 controls placed in a table in each row

Row1 --> DropDownlist Web server control
Row2 --> Text box control
Row3--> list box control
Row 4--> update and delete buttons

each control has associated lable control too.

my Question:-

Depending upon certain values in Dropdownlist control I want to make
either
Row2 controls visible or Row 3 controls visible. When I use the visible
property of these controls that works but the visual appearence is not
too
good.

Say, if Row3 controls are displayed and Row2 controls are set to visible
=
false then there is a gap of eqivalent space of Row2. How can I
dynamically
shift Row3 and Row 4 controls to up.

Is there any alternate solution for this

Thanks
Make the table rows (<tr>) into a server control and make those invisible
instead. Add an id="someid" and runat="server" to each <tr> and you can
then reference them from server code...
 
Hi,

Rightly said because unlike the html tags the server controls doesn't
occupy the position on the page until they are visble or rendered.

Regards,
Angrez
 
Thanks

For this do I have to have the whole table as runat=server or only those
specific rows....

<Table>
<TR ID="aaa" runat = server>
<TD></TD>
</TR>
<TR ID="bbb" runat=server>
<TD></TD>
<TD></TD>
</TR>

How can I access this from server side,....is just by name ????
 
Back
Top