473,326 Members | 2,113 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,326 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 5840
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",...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.