Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird HIDDEN input type gives empty space

Status
Not open for further replies.

cumap

IS-IT--Management
Jul 9, 2007
268
US
Hi all,

I'm having this weird problem that not sure which forum ASP or HTML should I post the question to, so I thought I try this forum first.

I troubleshooted and ruled out, for sure, to this particular line that cause the problem
Code:
<input type="hidden" name="<%=(count & ".ProductID")%>" value="<%=(rs("ProductID"))%>" />

And the problem (IN MSIE BROWSER ONLY) is that throughout my DO WHILE NOT rs.eof loop, this line creates an empty lines for every line the loop go through. For ie: if I called 50 recordsets for a page, I will have 50 empty white space on top of all the data displayed (doesn't matter whether I store this line before or after all other data called.)

The more records on a page, the more empty lines created.
Please let me know whether I am in the right forum.

Thanks!
 
Do you mean a blank line is displayed by the browser or is present when you view the HTML source?
 
only on MSIE, not Firefox, browser that has those blank lines. I viewed the source from IE but found nothing at the blank section. The page is used TABLE, so when I set border=1 in the table that has data outputs, the border doesn't include the empty area. However, if I utilize CSS and DIV surround the table with border=1px solid #000, the whole output table with the empty area will then be included in the CSS border.

If I remove the Hidden input type for ID#, the problem goes away, and the table move up accordingly. I was thinking that if the thing is persistent, maybe someone can help me find another way instead of <input type=hidden...> to include the ID#.

I hope!!!
 
I'd never thought of this kind of problem could took my whole day to find out why.

I just found out that all I need to do is move that <input type=hidden...> to INSIDE a <TD></TD>.

THAT'S ALL, FOLKS!!!

Just unbelievable, go figure MSIE browser!!!

Thanks anyway!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top