Document Length Property?

  • Thread starter Thread starter David A. Beck
  • Start date Start date
D

David A. Beck

I'm working on a project that has several aspx webforms. I'm runniung in to
a problme where the document length is not allowing me to add controls. The
scrollbar in the design mode is disabled it seems. It's as if the length is
fixed not allowing for scrolling down the page. I know this must be a simple
thing, but can't seem to find it. Thank anyone for their assistance.

David A. Beck
 
David,

In design mode the visual studio.net ide only shows scroll bars if
necessary. The document's length, just like in a web browser, automatically
grows depending on how much is placed on it.

To demonstrate this (and to show you how to place a control further down the
document's page), just hit the enter key a few times which will place
paragraph tags into your document. Put enough of them in and you'll see
scroll bars. To place a control further down the page put paragraph tags in
your page until you reach the point your next control should be placed.

In other words you have to place all your controls on the page using html
tags (paragraph tags, break tags, or tables to name a few) or using
cascading style sheets to "place" each component.

I hope this helps.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
S:

That's what I think should happen, but I can't type on the form at all. I
can place controls on it but I can't type directly on it or hit enter. Must
be something simple.

Dab
 
S:

I am using a Web Form, not a HTML page.

Dab
S. Justin Gengo said:
David,

In design mode the visual studio.net ide only shows scroll bars if
necessary. The document's length, just like in a web browser, automatically
grows depending on how much is placed on it.

To demonstrate this (and to show you how to place a control further down the
document's page), just hit the enter key a few times which will place
paragraph tags into your document. Put enough of them in and you'll see
scroll bars. To place a control further down the page put paragraph tags in
your page until you reach the point your next control should be placed.

In other words you have to place all your controls on the page using html
tags (paragraph tags, break tags, or tables to name a few) or using
cascading style sheets to "place" each component.

I hope this helps.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
S:

I added a whole bunch of <BR> html tags to the bottom of my form and, like
you said, it lets me scroll down now. I plased the asp controls where they
go and then commented out the <BR>s and everything works. Thanks.

I'd be interested in an example of using a CSS to accomplish what you are
saying.

Dab
 
David,

Here's an example of positioning a label using CSS. (Not all CSS displays
the same way on all browsers. So be careful to test all the browsers you
need your site to work with if you go the CSS route. It's the most flexible
way to design a page though and it's the recommended way to design a site.
Reference www.w3c.org for details.)

<asp:Label id="Label1" runat="server" style="LEFT: 8px; POSITION: absolute;
TOP: 8px">Positioned with CSS style tags.</asp:Label>

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
Back
Top