473,769 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1066
On Wed, 04 May 2005 17:20:38 -0500, abcd <ab**@abcd.co m> 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_sp am_4_meyahoo.co m> wrote in message
news:op******** *******@cowboy. hsd1.mn.comcast .net...
On Wed, 04 May 2005 17:20:38 -0500, abcd <ab**@abcd.co m> 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
13196
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 a device context for the entire form, that I can render to *after* all the controls have been painted. Suggestions? Thanks DanB
3
3984
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 step you're on. This all works fine, but I ran into some trouble when I started creating controls dynamically in my code-behind file. Each panel contains a table which is filled with various radio buttons, text fields and the such which are...
6
2238
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 corrent number of controls. The problem is that they appear next to each other. I want to create the controls with some wording to the left of them (again, dynamically generated). Normally id use <table> with two colums, one for the
7
1623
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) { Response.Write(c.ID); } It is returning nothing. I check the <form runat="server"> and it is in there.
22
2192
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 stage. One approach I have used on other systems is to prevent the action buttons appearing. For example, if one did not have the Role of Administrator, one would be prevented from deleting a ticket not created by oneself. However, it did occur...
4
1143
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 that contains 3 other tab controls. The inner tab controls contains the controls. On one of these tab controls, no controls display on the tab control, but the other tab controls are fine. If I use the properties dialog I can see the missing controls...
15
6521
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 accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then i added this line "" before my custom control class (i dont know what this line does). Now
2
2843
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 a function call to an external class library (which is poorly designed) many many times (512 to be exact)....you can see that this will take a while. After populating the ComboBox I initialize a user control which displays details about the first...
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9999
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.