473,657 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to handle the space between the panels on .aspx page?

Hello there,
I have built as .aspx page. I have a situation to create 4 panels in

a <td></td. Based on the selection of a drop down I need to display
the corresponding panel in that table cell. Every thing works fine but
I see a lot of space in the table cell that was occupied by the other
panels though they are being hidden.

Can any one help me how to remove the space ? I dont' know how to use
style sheets or even do not if the the DIV functions works and how to
use it.
Here is a sample table code snippet with panels inside the table cells
for you to simple put some code to show me.
<table>
<tr><td>drop down selection</td></tr>
<tr><td>
<asp:panel1></asp:panel>
<asp:panel2></asp:panel>
<asp:panel3></asp:panel>
<asp:panel4></asp:panel>
</td>
</tr>
</table>
Any inputs are greatly appreciated.
Thanks
-L

Aug 3 '06 #1
3 4459
I don't know if this will help, but try

<table cellpadding="0" cellspacing="0" border="0">

You might also move all your code onto on line. I know that sounds
stupid, but sometimes it works.

Learner wrote:
Hello there,
I have built as .aspx page. I have a situation to create 4 panels in

a <td></td. Based on the selection of a drop down I need to display
the corresponding panel in that table cell. Every thing works fine but
I see a lot of space in the table cell that was occupied by the other
panels though they are being hidden.

Can any one help me how to remove the space ? I dont' know how to use
style sheets or even do not if the the DIV functions works and how to
use it.
Here is a sample table code snippet with panels inside the table cells
for you to simple put some code to show me.
<table>
<tr><td>drop down selection</td></tr>
<tr><td>
<asp:panel1></asp:panel>
<asp:panel2></asp:panel>
<asp:panel3></asp:panel>
<asp:panel4></asp:panel>
</td>
</tr>
</table>
Any inputs are greatly appreciated.
Thanks
-L
Aug 3 '06 #2
Hello Kennedy,
I have just tried it but no luck yet :( but thanks for the reply.

I also have other <td>s defined in the same table its kind have 10
<tr>s with controls placed in it. Looks like we need to use some kind
of CSS functions to recover/to handle the space (gap betten the
controls) but unfortunately I have knowledge about it!

Thanks again for your reply.
-L
kennedystephen wrote:
I don't know if this will help, but try

<table cellpadding="0" cellspacing="0" border="0">

You might also move all your code onto on line. I know that sounds
stupid, but sometimes it works.

Learner wrote:
Hello there,
I have built as .aspx page. I have a situation to create 4 panels in

a <td></td. Based on the selection of a drop down I need to display
the corresponding panel in that table cell. Every thing works fine but
I see a lot of space in the table cell that was occupied by the other
panels though they are being hidden.

Can any one help me how to remove the space ? I dont' know how to use
style sheets or even do not if the the DIV functions works and how to
use it.
Here is a sample table code snippet with panels inside the table cells
for you to simple put some code to show me.
<table>
<tr><td>drop down selection</td></tr>
<tr><td>
<asp:panel1></asp:panel>
<asp:panel2></asp:panel>
<asp:panel3></asp:panel>
<asp:panel4></asp:panel>
</td>
</tr>
</table>
Any inputs are greatly appreciated.
Thanks
-L
Aug 3 '06 #3
Hi,

Learner wrote:
Hello Kennedy,
I have just tried it but no luck yet :( but thanks for the reply.

I also have other <td>s defined in the same table its kind have 10
<tr>s with controls placed in it. Looks like we need to use some kind
of CSS functions to recover/to handle the space (gap betten the
controls) but unfortunately I have knowledge about it!

Thanks again for your reply.
-L
How do you hide the panels? And also, how does the client-side code look
like?
(display the web page in a browser, right-click on the page and then
choose "View source")

Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Aug 3 '06 #4

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

Similar topics

3
2231
by: Jonas | last post by:
Hi! I have aspx-page where I use multiple panels to make room for more controls than would otherwise fit onto one page. On submit, the controls on all panels, visible or not, should be validated with the ASP.NET validators, and if the page is valid, it is sent to the database in one transaction. But it seems that only the controls on the visible panels gets validated. Is there a easy way to solve this problem?
0
951
by: Anonymous | last post by:
Crossposted to relevant groups. When using VS2003 to develop ASP.NET apps, you open up an aspx page and have a "canvas" to work on. You can drop controls from the toolbox onto the page, and then reposition a control by dragging it around the page. But if you want to use a TabStrip with multiple panels, only one of which is visible at any given time (according to the tab metaphor) you can scroll to the page to the right into virtual...
1
2238
by: Demetri | last post by:
I'm trying to determine if we want to use panels or user controls for our pages. Our primary concern is performance, page loading and posting speed. To illustrate my question, lets use the Customer Orders scenario: Problem: User needs to view orders and and edit, add, save on one page called Orders.aspx. To begin with the page contains a grid with basic information about an order. The user can click a row to edit or click an "Add"...
1
1670
by: csgraham74 | last post by:
Hi Guys, Just a quick one. I have an .aspx web page with numerous panels on the page - each panel contains a datagrid. I have found that below each panel there is a blank space that i cannot remove - has anyone came across this before - or does anyone have a solution?? thanks
0
8403
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
8316
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,...
0
8737
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8509
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
8610
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
5636
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
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
1730
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.