473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

controls hiding

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

Nov 19 '05 #1
3 1048
On Wed, 04 May 2005 17:20:38 -0500, abcd <ab**@abcd.com> wrote:
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...

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #2
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

Nov 19 '05 #3
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 ????

"Craig Deelsnyder" <cdeelsny@no_spam_4_meyahoo.com> wrote in message
news:op***************@cowboy.hsd1.mn.comcast.net. ..
On Wed, 04 May 2005 17:20:38 -0500, abcd <ab**@abcd.com> wrote:
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...

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dan Baker | last post by:
I have a form with several controls. I would like to paint *over* several controls (mainly GroupBoxes and Labels). But, Everywhere I try to perform painting, I end up "behind" the controls. I need...
3
by: Leo J. Hart IV | last post by:
OK, here's another question for the experts: I am building a multi-step (3 steps actually) form using a panel for each step and hiding/displaying the appropriate panel/panels depending on which...
6
by: dhnriverside | last post by:
Hi peeps, I'm trying to create some controls textboxes at runtime, based on the number of items in a IETreeView that are checked. That I can do, I've got a place holder and I can create the...
7
by: Rodusa | last post by:
I am trying to loop all controls in a form with no success. For example, Let's say we place three TextBoxes in the form and we use the code below: foreach (Control c in Page.Controls) {...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
4
by: Michael | last post by:
Hi everyone, I just used the upgrade wizard to upgrade a project of mine. One of the main forms I have has over 200 controls on the form, Uses some tab controls. Now, I have a main tab control...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
2
Frinavale
by: Frinavale | last post by:
This question may seem a bit newbie-ish but I'm new to desktop applications...please bear with me. I have a function that populates a ComboBox with a bunch of names. To populate it I have to make...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.