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

Home Posts Topics Members FAQ

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><tdt ags. 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 5860
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><tdt ags. 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><tdt ags. 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.infosystem s.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.sympa tico.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.sympa tico.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><tdt ags. 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
3277
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 text, I lose the leading blank line. Each time it goes through a post any top-leading blank line is lost. Only one- if I have several blank lines in a row at the top, only the first is lost. (If the top blank line has a single space, it's handled...
8
5089
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, post values go to a PHP processing page that adds values to a database and generates an email to someone in marketing. For three of these sites, we have no problem, but the fourth keeps sending in blank forms.
2
2693
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
2546
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 extra blank line between the radio buttons in IE (v6 with all the latest patches). There's a complete self-contained example. <html>
5
4545
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 line page header, three lines of detail (name address etc)and a footer. On previewing or printing the report it inserts a blank three line detail section before the first record. Every other page is fine except this first page. Not a big deal but it...
6
5533
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 the remaining page to fill and print blank lines with the same number of fields as the line items. In addition, if there were a long list of line items that carried over to a second and possibly more pages, to print blank lines at the last page. The...
12
1954
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 http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fsurvivalofthesickestthebook.com%2Fblog%2F%3Ffeed%3Drss2 I see a blank space on line one which renders the page unviewable. none of my files have a space at the top, and I have no idea why the page is being served with a space at...
1
2264
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 source I mean long or short in detail section is vary. The problem is, when the detail is more than 25 line it will give blank area below the 25th line in page 1, and page 2 continue with report footer. This blank area in page is cause by...
2
3216
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", $formName); // 06-22-07 - the next commands try to import all the functions that the
0
8425
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
8326
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
8522
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
8622
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
7355
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
6177
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
5647
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
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1736
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.