473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Approach to get a common layouts


Hi,

I'm developing my first asp.net application. It will be a small e-commerce
site, with product catalogos, shoping cart, etc.

I started to develop using a single page, the default.aspx, and having all
the content in User Controls.
The header, footer and menu are user controls, as well as the main content
page, it is a user control, too.

However, lately I've read about another approach, of creating individual
pages, and drop your header/footer/menus on each of this page ... however,
this would requiere to have the exact same table, for spacing purposes, on
each form, with the risk of non being 100% identical.

Which of these approachs would be considered the most commonly (and secure)
used ? Is there any other better ?
If you use the individual pages approach, how you do to get the same
identical spacing in each page ?

I've been reading all day about this in forums, but seems I have no
definitive word on the subject, so, what I most like to know, is which are
the possible problems I could have by following the "one-page, all
user-controls" approach ... (I'm just like at 20% of the project at this
moment).

Thanks in advance,
Nov 18 '05 #1
1 967
In my opinion the best approach is to use MasterPages
(http://www.metabuilders.com/Tools/MasterPages.aspx free). They'll give
you high reuse and high flexibility and are very simple to use. ASP.Net 2.0
will have built-in support for them, so it tells you something about how
popular they are (not that every built-in feature is popular :) ).

karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Craig Kenisston" <Cr************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

Hi,

I'm developing my first asp.net application. It will be a small e-commerce
site, with product catalogos, shoping cart, etc.

I started to develop using a single page, the default.aspx, and having all
the content in User Controls.
The header, footer and menu are user controls, as well as the main content
page, it is a user control, too.

However, lately I've read about another approach, of creating individual
pages, and drop your header/footer/menus on each of this page ... however,
this would requiere to have the exact same table, for spacing purposes, on
each form, with the risk of non being 100% identical.

Which of these approachs would be considered the most commonly (and secure) used ? Is there any other better ?
If you use the individual pages approach, how you do to get the same
identical spacing in each page ?

I've been reading all day about this in forums, but seems I have no
definitive word on the subject, so, what I most like to know, is which are
the possible problems I could have by following the "one-page, all
user-controls" approach ... (I'm just like at 20% of the project at this
moment).

Thanks in advance,

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dario de Judicibus | last post by:
I wish to create two simple layouts by using only HTML, CSS and the minimum JavaScript as possible. Layouts should be "elastic" (no fixed widths and heights) and cross-browser enabled. The first...
6
by: Tristan Miller | last post by:
Greetings. Can someone point me to a good source of nice, simple stylesheets, similar to the W3C Core Styles provided at http://www.w3.org/StyleSheets/Core/? I don't need anything fancy like...
0
by: John Bradley | last post by:
I've read and understood the w3 specs on css1 and css2. I've done some positioned layouts on my own system that worked as expected. But - I'm concerned about letting anything on to the live system...
7
by: Alan J. Flavell | last post by:
A colleague recently breezed in with a new web page design. He didn't tell me where he got the ideas from, but ... Looking at his stylesheets, I noticed they identified themselves as...
16
by: Michael Rozdoba | last post by:
I'm far from a CSS expert, but what I see of it I really like & I love keeping content & style separate. I also hate the way table layout produces convoluted bulky code. However when asked why...
10
by: charlie | last post by:
I posted this at Macromedia Dreamweaver newsgroup but go no response. I've been trying to learn CSS. Below is a link to a couple of designs that I managed to do using absolute position. ...
56
by: Luke Matuszewski | last post by:
I am designing the library, which will hidden all its functions within singleton object ... So for clients they will use it like . eg. system.getElementWithId('ruler'); At library side, i...
4
by: james00 | last post by:
Switching Page Layouts!!! Does anyone have any idea how to create a script for Switching Page Layouts. I know how to create one for Style Sheet Switcher ...
20
by: mike3 | last post by:
Hi. (Xposted to both comp.lang.c++ and comp.programming since I've got questions related to both C++ language and general programming) I've got the following C++ code. The first routine runs in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.