473,232 Members | 1,658 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,232 software developers and data experts.

A blank line at the top of my page

Hello,

I am modifying an .asp file and I noticed that the top line on the screen is
blank. I would like to remove this line, and push everything up to the top
of the screen, but I don't know what is causing it to appear. Does any one
have any ideas of what to look for?

The code has <table><tr><tdtags. There are no <formand no <p>. I hope
I have given you enough information, and thank you for your help.

Joy
Nov 21 '07 #1
7 5837
On 11/20/07 06:39 pm, Joy M wrote:
>
I am modifying an .asp file and I noticed that the top line on the screen is
blank. I would like to remove this line, and push everything up to the top
of the screen, but I don't know what is causing it to appear. Does any one
have any ideas of what to look for?
No.
An URL to a test case would be most helpful.
The code has <table><tr><tdtags. There are no <formand no <p>. I hope
I have given you enough information, and thank you for your help.
No, you haven't, not even close.
You are welcome.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Nov 21 '07 #2
Joy M wrote:
I am modifying an .asp file and I noticed that the top line on the screen is
blank. I would like to remove this line, and push everything up to the top
of the screen, but I don't know what is causing it to appear. Does any one
have any ideas of what to look for?

The code has <table><tr><tdtags. There are no <formand no <p>. I hope
I have given you enough information, and thank you for your help.
Most browsers leave a space that looks like a blank line at the top of
each page, akin to the blank space at the top of most printed pages.

You can remove it, or reduce it, but you'll have to use CSS for this.
See newsgroup comp.infosystems.www.authoring.stylesheets (CSS stands for
"Cascading Style Sheets")

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Nov 21 '07 #3
Hi,

Thanks for your messages. I am working with 24 .asp programs that form a
website and there is only one program with the blank line at the top, so I
think something must be causing it to happen.

I was just wondering if there was any kind of JavaScript/VBScript/ASP or
HTML code that could produce a blank line. One thing I just realized I
could do is copy the program and then remove some code and gradually add it
back in, maybe then I could narrow down the code to find out what is causing
the blank line.

Anyone have any other suggestions?

Joy
Nov 22 '07 #4
rf

"Joy M" <ab***@ns.sympatico.cawrote in message
news:47**********************@news.aliant.net...
Hi,

Thanks for your messages. I am working with 24 .asp programs that form a
website and there is only one program with the blank line at the top, so I
think something must be causing it to happen.

I was just wondering if there was any kind of JavaScript/VBScript/ASP or
HTML code that could produce a blank line. One thing I just realized I
could do is copy the program and then remove some code and gradually add
it back in, maybe then I could narrow down the code to find out what is
causing the blank line.

Anyone have any other suggestions?
Show us a URL.

--
Richard.
Nov 22 '07 #5
I was just wondering if there was any kind of JavaScript/VBScript/ASP or
HTML code that could produce a blank line. One thing I just realized I
could do is copy the program and then remove some code and gradually add it
back in, maybe then I could narrow down the code to find out what is causing
the blank line.
3 Ignore the numbers until you find out what they are for!
5
If it were me (and it frequently is with my CGI scripts) I would *add* a
4 line of code to output something obvious, perhaps a "z" or a &dagger;
right at the start of the program (or after the HTTP header, if you
2 generate this). Make sure your addition is at the top of the page.
Then move the new line of code down through your program in steps until
the new z/dagger appears after the space. Now move the new line upwards
in smaller steps until the gap re-appears. Repeat using ever smaller
steps until you have isolated the precise line of your code that is
causing the problem.

1 If you make the first step in the process half the size of your code,
and each successive step half the size of the previous one, this is
known as a "binary search" and will find the problem in the hugest
program within 12 steps. (Someone now steps in and says their program
contains more than 4096 lines).

The beauty of adding just one line is that your program remains intact;
you don't risk deleting a bunch of stuff then accidentally pressing
"save" rather than "save as". It also means that your process continues
to work if this one program is part of a suite executed in sequence.

To give you an idea of how this works, I've put numbers at the beginning
of lines in this post, as if this were the program, to demonstrate the
steps. You find the first blank line in 5 steps!

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Nov 22 '07 #6
Gazing into my crystal ball I observed "Joy M" <ab***@ns.sympatico.ca>
writing in news:47**********************@news.aliant.net:
Hello,

I am modifying an .asp file and I noticed that the top line on the
screen is blank. I would like to remove this line, and push
everything up to the top of the screen, but I don't know what is
causing it to appear. Does any one have any ideas of what to look
for?

The code has <table><tr><tdtags. There are no <formand no <p>. I
hope I have given you enough information, and thank you for your help.

Joy

Look for erant response.write , then look at the generated HTML (view
source). Validate.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Nov 22 '07 #7
Hi again,

I solved my problem by using Steve's technique of adding markers to zero in
on errant code.
Great tip, one that I will remember and use again. Thank you.

In the ASP part of the program (not the HTML) I found
%>
<br>
<%

And the <brwas the line that I deleted, and that removed the blank line on
the screen.
So it was a fairly simple solution in the end.

Thank you, again, to everyone who replied.

Joy
Nov 23 '07 #8

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

Similar topics

12
by: dan glenn | last post by:
Hi. I'm finding that if I have text entered into a <textarea ...> </textarea> in a form, and that text has leading blank lines (with no spaces or anything else), that when I retrieve the entered...
8
by: dmcconkey | last post by:
Hi folks, I have a client with four websites. Each site has a contact form that is identical. They all have "required" fields validated through a JavaScript onSubmit() function. Upon validation,...
2
by: Danny | last post by:
Is there a way I can get rid of a blank like under an <h3></h3> tag? without using css Thanks in advance
2
by: Andy Fish | last post by:
Hi, This has nothing to do with the common "blank line after a form" problem. I have a form with a table with some radio buttons inside it, and I couldn't figure out why it was rendering an...
5
by: Bob | last post by:
Hi, I am using Access 2000 to print out an address book. I have designed the report based on a database whose first record is not blank. In the design there is a one line report header, a onle...
6
by: Melissa | last post by:
Does anyone have a generic procedure for adding blank lines to reports like Sales details, PO details and/or Orders details. The procedure would need to count the number of line items, determine...
12
by: Seller | last post by:
I am using Wordpress 2.0.6 on Fedora Core 5. An RSS feed is not working for http://survivalofthesickestthebook.com/blog/?feed=rss2 When I use feed validator...
1
by: siomay87 | last post by:
please help i have a problem in the ms access reporting, my report have: page header, detail, page footer and report footer In listing "detail section", the number of line is depend on the data...
2
by: Lawrence Krubner | last post by:
Imagine a template system that works by getting a file, as a string, and then putting it through eval(), something like this: $formAsString = $controller->command("readFileAndReturnString",...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.