468,161 Members | 1,918 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,161 developers. It's quick & easy.

Page layout in VS 2005?

I'm just getting started with ASP.NET in Visual Studio 2005. The last web
work I did involved ASP 3.0 in FrontPage.

I've been through the MSDN tutorials on creating web pages, but not of them
seem to cover real-world page layout. In the ASP era, I used tables to
provide a structure for a page, then coded HTML controls within the grid.

So, my first question is: Are pages laid out the same way in ASP.NET--start
with a table and add controls?

I tried using the ASP.NET Table control like a TableLayoutPanel in Windows
Forms, but the table doesn't accept control drops. That leads me to believe
VS 2005 must have a better way of structuring a page.

BTW, I'm familiar with Master Pages, and I plan to use them as soon as I get
proficient at laying out basic web pages in VS 2005.

That brings me to my second question: Are there any good tutorials out there
on web page layout procedures using VS 2005? I've done a Google search, but
I don't see anything that looks like it walks through real world examples.
I'm not concerned about design at this point; I just want to get a page laid
out.

Thanks in advance.

--
David Veeneman
Foresight Systems
Jan 20 '06 #1
7 1520
Remember that Web browsers haven't changed much in the past few years...
they are for the most part expecting plain old HTML. Using VS.NET to create
that HTML doesn't change anything from the browser's point of view. The
browser doesn't know or care about how the HTML was created (VS.NET,
FrontPage, etc). So, you basically have two ways to do page layout: table
layout and CSS-P.... just like if you were doing everything manually, with
Dreamweaver, FrontPage, or whatever. VS.NET doesn't change that fact. It
might write crappy table layouts for you... but at the end of the day it's
still plain old HTML with table layouts and/or CSS. My suggestion is to
stick with Dreamweaver or FrontPage (or even Notepad) for HTML-specific
work; and VS.NET for all code-behind programming work.

-FWIW

"David Veeneman" <da****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I'm just getting started with ASP.NET in Visual Studio 2005. The last web
work I did involved ASP 3.0 in FrontPage.

I've been through the MSDN tutorials on creating web pages, but not of
them seem to cover real-world page layout. In the ASP era, I used tables
to provide a structure for a page, then coded HTML controls within the
grid.

So, my first question is: Are pages laid out the same way in
ASP.NET--start with a table and add controls?

I tried using the ASP.NET Table control like a TableLayoutPanel in Windows
Forms, but the table doesn't accept control drops. That leads me to
believe VS 2005 must have a better way of structuring a page.

BTW, I'm familiar with Master Pages, and I plan to use them as soon as I
get proficient at laying out basic web pages in VS 2005.

That brings me to my second question: Are there any good tutorials out
there on web page layout procedures using VS 2005? I've done a Google
search, but I don't see anything that looks like it walks through real
world examples. I'm not concerned about design at this point; I just want
to get a page laid out.

Thanks in advance.

--
David Veeneman
Foresight Systems

Jan 20 '06 #2
table layout is still the best. vs2005 went from vs2003's failed grid mode
drag and and drop (trying to look vb forms) to good support for html editing
in the html window (not design). a future product will give a more visual
editor.

-- bruce (sqlwork.com)

"David Veeneman" <da****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I'm just getting started with ASP.NET in Visual Studio 2005. The last web
work I did involved ASP 3.0 in FrontPage.

I've been through the MSDN tutorials on creating web pages, but not of
them seem to cover real-world page layout. In the ASP era, I used tables
to provide a structure for a page, then coded HTML controls within the
grid.

So, my first question is: Are pages laid out the same way in
ASP.NET--start with a table and add controls?

I tried using the ASP.NET Table control like a TableLayoutPanel in Windows
Forms, but the table doesn't accept control drops. That leads me to
believe VS 2005 must have a better way of structuring a page.

BTW, I'm familiar with Master Pages, and I plan to use them as soon as I
get proficient at laying out basic web pages in VS 2005.

That brings me to my second question: Are there any good tutorials out
there on web page layout procedures using VS 2005? I've done a Google
search, but I don't see anything that looks like it walks through real
world examples. I'm not concerned about design at this point; I just want
to get a page laid out.

Thanks in advance.

--
David Veeneman
Foresight Systems

Jan 20 '06 #3
I suggest starting with the HTML Table control (In the HTML section of your
Visual Studio toolbox) because it does support control drops.
Here's a tutorial I wrote that sounds like it's just what you're looking
for:
http://SteveOrr.net/articles/ControlPositioning.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"David Veeneman" <da****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I'm just getting started with ASP.NET in Visual Studio 2005. The last web
work I did involved ASP 3.0 in FrontPage.

I've been through the MSDN tutorials on creating web pages, but not of
them seem to cover real-world page layout. In the ASP era, I used tables
to provide a structure for a page, then coded HTML controls within the
grid.

So, my first question is: Are pages laid out the same way in
ASP.NET--start with a table and add controls?

I tried using the ASP.NET Table control like a TableLayoutPanel in Windows
Forms, but the table doesn't accept control drops. That leads me to
believe VS 2005 must have a better way of structuring a page.

BTW, I'm familiar with Master Pages, and I plan to use them as soon as I
get proficient at laying out basic web pages in VS 2005.

That brings me to my second question: Are there any good tutorials out
there on web page layout procedures using VS 2005? I've done a Google
search, but I don't see anything that looks like it walks through real
world examples. I'm not concerned about design at this point; I just want
to get a page laid out.

Thanks in advance.

--
David Veeneman
Foresight Systems

Jan 21 '06 #4
Thanks-- That's what I was looking for. It sounds like the best approach is
to drag out a table andcontrols in design view, then move controls into the
table in the HTML view. Have I got it right?

--
David Veeneman
Foresight Systems
Jan 21 '06 #5
Thanks, Steve! I'll take a look at it.
Jan 21 '06 #6
Now this is making more sense! For the benefit of anyone else researching
this issue, here is why the table control wouldn't accept controls dropped
on it: ASP.NET has *two* table controls; a server-side table (in the
Standard section of the VS 2005 Toolbox), and an HTML table (in the HTML
section of the Toolbox). I was dragging the server-side table onto a grid
and trying to drop controls on that. Use the HTML table, and you can drop
controls on it just fine.

Better yet, in Design View, select Insert Table from the Layout menu. It
brings up a dialog where an HTML table can be configured. Select 'Template'
at the top of the dialog, and you get a drop-down list of page-layout
tables. The rest of the Layout menu has a number of options for configuring
and formatting layout tables.

--
David Veeneman
Foresight Systems
Jan 21 '06 #7
Let me answer my own question: That's not quite it. Tables can be laid out
in Design view, and the Layout menu has a number of options to assist with
this task. See my answer to my original question. If you are having trouble
dropping controls on a table, make sure you are using an HTML table, not a
server-side table.

--
David Veeneman
Foresight Systems
Jan 21 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Nathan | last post: by
11 posts views Thread by David Given | last post: by
3 posts views Thread by Urs Eichmann | last post: by
1 post views Thread by Wayne Sepega | last post: by
4 posts views Thread by Bill Cohagan | last post: by
14 posts views Thread by Anoop | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by kamranasdasdas | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.