Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 3rd, 2004, 02:48 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Default Form Stretch

I'm creating pages in VS.NET using the grid layout. Most of my pages have a common footer that is intended to be below the content of the page. How do I avoid my content from running it over?

- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.
 
Old February 3rd, 2004, 04:16 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Set the form layout to Flow on the ASPX form properties.
 
Old February 3rd, 2004, 09:09 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I take that to mean that it cannot be done in grid?

- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.
 
Old February 4th, 2004, 10:30 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Grid layout is used for absolute positioning of controls, so yes, that would mean the form cannot stretch in grid layout.

I think the panel control can use absolute positioning for its child controls. (The panel control is just a <div> when rendered.) You could have two of those with the page contents in between. The page would be in flow layout, with each panel using grid layout and as contents of the page expands, it would push the lower panel(s) down below it, but all the controls inside the panels would still use absolute positioning relative to the panel itself.

<opinion>
It has been my experience that unless you have extremely strict control over the end client (browser) you should never build web sites with explicit positioning. Client browser font sizes can be different, the size of the screen, the browser size (believe it or not some people still don't understand the concept of maximize), lots of things. Website design should be as visually flexible as possible.
</opinion>

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old February 6th, 2004, 09:25 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually, I am in the fortunate position to have a large degree of control over the user's browser config, as this is an internal system for my organization. The system consists of 3 main sections: Data Entry, administration and reporting. Since the first 2 of those sections are essentially filling out forms, vertical stretch isn't an issue - that comes with the reports.

I think I will build the reports in flow layout as opposed to grid, so that my footer remains intact.

<dude>
Thanks as always for your pithy comments.
</dude>

- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Image stretch or reduced to fit inside button remya1000 General .NET 5 October 23rd, 2008 03:15 PM
Stretch problems daniel.mihalcea ASP.NET 3.5 Professionals 0 August 29th, 2008 04:25 AM
Concatenating values in a loop at a stretch!!!!!!! rakesh XSLT 5 July 23rd, 2008 11:21 AM
stop page stretch on PHPBB2 board crmpicco HTML Code Clinic 2 January 21st, 2008 06:42 PM
Table column to stretch height on long page nbryson HTML Code Clinic 12 October 19th, 2005 05:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.