473,769 Members | 8,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with white space on page

I have a web form with several fields. Depending on user
selection in one combo box, i populate a text box and a
check box in one line. For example if the user selects 2
years, then i show the user two lines with each line
containing 1 text box and 1 check box. I have already put
in 10 lines, using ,<tr> in a table, from which i display
only the required number of <tr> in the code behind
(setting the visible property of controls). Each <tr>
contains a validator for the text box. It works properly,
except that there appears a white space below the 2 <tr>
(if 2 is selected in dropdown). If 10 is selected then all
10 lines <tr> are displayed and no whitespace appears. Any
selection less than 10 leads to the appearance of some
white space below the displayed lines. How do i remove
this white space or make the table dynamic?

<table style="WIDTH: 734px; HEIGHT: 273px" cellSpacing="0"
cellPadding="2" border="0">
<tr>
<td style="WIDTH: 56px; HEIGHT: 23px"><asp:text box
id="txtNumDaysY r1" Runat="server" Width="59px"
ToolTip="Enter Year 1" Visible="False" ></asp:textbox>
</td>
<td style="WIDTH: 38px; HEIGHT: 23px"><asp:Chec kBox
id="chkCage1" runat="server" Width="22px" Text='<font
style="VERTICAL-ALIGN: super" face = "tahoma" size = "0.1"
Color = "#800000">1 </font>' ToolTip="Cage1"
Visible="False" ></asp:CheckBox></td>
<asp:customvali dator id="cvNumDaysYr 1" Runat="server"
Display="Dynami c" ControlToValida te="txtNumDaysY r1"
ErrorMessage="* Number of days cannot be zero for Year 1"
OnServerValidat e="ServerValida te_NumDaysYr1"> </asp:customva
lidator><asp:co mparevalidator id="cmvNumDaysY r1"
Runat="Server" Display="Dynami c"
ControlToValida te="txtNumDaysY r1" Type="Double"
ErrorMessage="* Number of days for year 1 must be a
number" Operator="DataT ypeCheck"></asp:comparevali dator>
</tr>
</table>
Nov 18 '05 #1
1 2220
Hello Amar,

To solve this problem,

I think this could help you.
Make tr as server side Table Row
Like
<table style="WIDTH: 734px; HEIGHT: 273px" cellSpacing="0"
cellPadding="2" border="0">
<tr Runat="Server" visible="fasle" id="tr1">
<td style="WIDTH: 56px; HEIGHT: 23px"><asp:text box
id="txtNumDaysY r1" Runat="server" Width="59px"
ToolTip="Enter Year 1" "></asp:textbox>
</td>
<td style="WIDTH: 38px; HEIGHT: 23px"><asp:chec kbox
id="chkCage1" runat="server" Width="22px" text='<font
style="VERTICAL-ALIGN: super" face = "tahoma" size = "0.1"
Color = "#800000">1 </font>' ToolTip="Cage1"
</asp:checkbox></td>

<asp:customvali dator id="cvNumDaysYr 1" Runat="server"
Display="Dynami c" ControlToValida te="txtNumDaysY r1"
ErrorMessage="* Number of days cannot be zero for Year 1"
onservervalidat e="servervalida te_numdaysyr1"> </asp:customva
lidator><asp:co mparevalidator id="cmvNumDaysY r1"
Runat="Server" Display="Dynami c"
ControlToValida te="txtNumDaysY r1" Type="Double"
ErrorMessage="* Number of days for year 1 must be a
number" operator="datat ypecheck"></asp:comparevali dator>
</tr>
</table>

so that you can have full control of table row now this row can be
displayed or not it's up to your code.

if this works out let me know @ this EmailID
pr******@pacsof t.co.in

Regards,
Rajupeta Prasanna

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2

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

Similar topics

45
3492
by: Stephen Poley | last post by:
People in these groups, and on web-pages, not infrequently suggest that it is worthwhile cutting down on white-space and comments in HTML and CSS in order to reduce loading times. I and others have more than once doubted this, given the data-compression in the HTTP protocol. Having seen it suggested again a couple of times in the last few days, I decided it was time for a test on the effect of white-space. I took one of my pages:...
0
15191
by: Mark Moore | last post by:
I'm trying to layout a couple text input fields and their corresponding labels without using a table. When I was trying to debug my understanding of CSS, I was *very* surprised to see that span's with borders behave counter-intuitively (IMHO) when using style="white-space: nowrap;". Below is a fairly small chunk of XHTML that demonstrates what I'm talking about. What gives? -Mark
23
383
by: foodic | last post by:
Hi all I have a little bit of programming experience on windows 98 using C. But this is my first attempt to compile a program on Linux using gcc.I have two files s1.c and s1.h and while compiling i am getting compilation problem, here is the content of s1.c #include <stdio.h> #include <s1.h> void hi();
3
3368
by: Prince | last post by:
I have some <RequiredFieldValidator> on my page and everything works fine except that there are lots of white spaces between the web server controls that are being validated. I've set the Display properties for all the controls to "Dynamic" and still I can't get rid of the white spaces between controls. It's as if there are bunch of <br> tags separating the controls. For example,the "HTML" look similar to this.
12
5578
by: Vadim Guchenko | last post by:
Hello. I'm using the following code: <html> <head> <style type="text/css"> pre {display: inline;} </style> </head>
11
1934
by: aljaber | last post by:
hi, i am facing a problem with my program output here is the program /*********************************************\ * CD Database * * * \*********************************************/
1
1251
Jezternz
by: Jezternz | last post by:
Okay, basicly for some reason firefox renders a white line (of exactly 5 pixels in height along my page. Does not do this in IE, im not saying its a problem of firefox. but watever it is, Its not doing what I want it to in FF. Snippet of HTML <div id="bracket_design"> <iframe src="edit/edit.htm" scrolling="auto" frameborder="0" id="designframe"></iframe> <!-- PROBLEM HERE ~ RANDOM WHITE SPACE --> <div id="design_split" class="open">...
19
3690
by: Jim | last post by:
Hi, I have two questions/problems pertaining to CSS horizontal dropdown menus and am hoping that someone here can help me out. (1) I'm having a problem centering the menu. I picked up the code for this from a tutorial but that menu was flush-left justified. Not what I want. Subsequent searches on google on how to center yielded a
1
7738
by: praveenb000 | last post by:
Hi every one, I designed a web page, having horizontal menu using UL and LI tags; I need to be set rollover effect for a menu items. whenever user hover on a menu item, the entire item(including anchor tag text) has to change to another color, but since iam using anchor tag in LI tag, the text in the menu item is not changing color when i hover on the menu item(LI). (but changing color when i hover on the anchor tag Text). But i...
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,...
0
10049
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
9998
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
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...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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
3567
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.