HTML White Space from Hidden Controls
- From: "Don Miller" <nospam@xxxxxxxxxx>
- Date: Tue, 17 Apr 2007 17:38:25 -0500
When an ASP.NET 2.0 web page is rendered with multiple web controls hidden
from view (.visible=false) there is a noticeable gap between a rendered
element (like a table) and the next visible element (e.g. a button). When I
look at the HTML source code there is nothing there except white space (see
below).
First of all, I thought browsers ignore white space and condense it down to
one space, but most of all, how can controls be hidden from the rendered
view so that the controls don't leave gaps between elements (like the
controls are there but they are not)?
Thanks for any tips.
</tr></table>
<input type="submit" name="btnStartOver" value="Start Over"
id="btnStartOver" />
.
- Follow-Ups:
- Re: HTML White Space from Hidden Controls
- From: Laurent Bugnion, MVP
- Re: HTML White Space from Hidden Controls
- From: bruce barker
- Re: HTML White Space from Hidden Controls
- Prev by Date: Re: Breakpoint on a session variable
- Next by Date: Error Rendering Control if nullable property is used
- Previous by thread: trying to run executable on server
- Next by thread: Re: HTML White Space from Hidden Controls
- Index(es):