Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / November 2007

Tip: Looking for answers? Try searching our database.

webform control placement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
radiolandog - 26 Nov 2007 17:48 GMT
I am struggling with positioning web form controls.  It was suggested that I
place a table on the page - but it seems that the controls are positioned
independent from the table.

What practices will work?  What should I avoid?

Thanks,
-dog
Steven Cheng[MSFT] - 27 Nov 2007 05:00 GMT
Hi,

As for the webform control placement/layout question you mentioned, I think
use table is a simple and quick approach. Normally, in any html based web
page, you can structure the layout through nested tables. For example, for
a page with Header, Content, Footer section, you can use a top level table
with three rows(1cols) and if you want to further structure the Content
section, just put a nested table in the middle row.  

As you mentioned that the controls are not located as the table cell they
reside, right? If so, would you provide some simple aspx/html snippet so
that we can have a look to see whether there is any other setting that
affect the controls' positioning.

Here are some web articles descrbing on html table and how to use it:

#How to use tables to structurize forms in HTML and about alternatives,
like fieldset
http://www.cs.tut.fi/~jkorpela/forms/tables.html

#Web Authoring FAQ: HTML Tables
http://htmlhelp.com/faq/html/tables.html

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "radiolandog" <radiolandog@nospam.nospam>
>Subject: webform control placement
[quoted text clipped - 10 lines]
>Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
>Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontrols:2839
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
>
[quoted text clipped - 6 lines]
>Thanks,
>-dog
radiolandog - 27 Nov 2007 18:48 GMT
Thanks...

I was trying various methods to position the controls.  I used a two column
table, relative positioning, absolute positioning, space bars...

When I cleaned out all the <style> tags in the HTML from my attempts at
using relative positioning and carefully placed the controls back in the
two-column table (with the left column right justified and the right column
left justified - I had the results I needed.

Moral of the story is to not be afraid of jumping into the HTML...

> Hi,
>
[quoted text clipped - 56 lines]
>>Thanks,
>>-dog
Steven Cheng[MSFT] - 28 Nov 2007 02:45 GMT
Thanks for your reply,

Yes, authoring the html source is necessary in some cases. Also, when you
try structuring the page layout, do not mix different position mode. For
example, when you are using relative position and html table for structure,
you should not add controls with absolute position mode among them.
Otherwise, that will make the page layout get disorder.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "radiolandog" <radiolandog@nospam.nospam>
>References: <Oi6BPRFMIHA.5160@TK2MSFTNGP05.phx.gbl>
<7ZxVtJLMIHA.6908@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: webform control placement
>Date: Tue, 27 Nov 2007 13:48:39 -0500
[quoted text clipped - 71 lines]
>>>Thanks,
>>>-dog

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.