473,387 Members | 1,691 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,387 software developers and data experts.

Basic Web Design Quesion

JJ
Having done most of the background sql coding I'm now ready to start
designing my asp.net web pages.

A basic question though - is there a way of having 'common' elements on
pages (e.g. a header)?
This used to be done using frames, but I undertand these are now not
advised.

Basically what I want is to have some text/code that is common to all pages,
but that I only need to update in one place?

Does that make sense??

Jun 13 '06 #1
7 1266
ASP.NET 2.0 Master Pages, Themes and Skins

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"JJ" <ab*@xyz.com> wrote in message
news:eC**************@TK2MSFTNGP03.phx.gbl...
Having done most of the background sql coding I'm now ready to start
designing my asp.net web pages.

A basic question though - is there a way of having 'common' elements on
pages (e.g. a header)?
This used to be done using frames, but I undertand these are now not
advised.

Basically what I want is to have some text/code that is common to all
pages, but that I only need to update in one place?

Does that make sense??

Jun 13 '06 #2
It depends on the version of .net you are running, and what you are
trying to do.

In .net 2005, the best way to do it is probably Master Pages, as the
other poster stated. You define your site look and feel in a master
page, leaving blank areas to be filled in and customized by each
content page.

In earlier versions (and you can still do all these in 2005) there are
some other methods :

1) Create a base class that all your pages inherit from, and add items
to the form collection in the base class to handle your shared look and
feel. You can also Response.Write from the base class

2) Use user controls, or custom server controls. Put shared look and
feel into these controls, and then drop them onto each page. This is
evry simmilar to the effect you got in classic ASP using server side
includes. The downside to this method is that you must manually modify
each page, and if your overall page design layout changes in the
future, you need to go through and retouch each page again.
JJ wrote:
Having done most of the background sql coding I'm now ready to start
designing my asp.net web pages.

A basic question though - is there a way of having 'common' elements on
pages (e.g. a header)?
This used to be done using frames, but I undertand these are now not
advised.

Basically what I want is to have some text/code that is common to all pages,
but that I only need to update in one place?

Does that make sense??


Jun 13 '06 #3
JJ
Thanks. Unfortunately I'm using .net 1.1 . (at least for now) so if there's
any way of doing it with this then please let me know
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:eo**************@TK2MSFTNGP05.phx.gbl...
ASP.NET 2.0 Master Pages, Themes and Skins

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"JJ" <ab*@xyz.com> wrote in message
news:eC**************@TK2MSFTNGP03.phx.gbl...
Having done most of the background sql coding I'm now ready to start
designing my asp.net web pages.

A basic question though - is there a way of having 'common' elements on
pages (e.g. a header)?
This used to be done using frames, but I undertand these are now not
advised.

Basically what I want is to have some text/code that is common to all
pages, but that I only need to update in one place?

Does that make sense??


Jun 13 '06 #4
JJ
Thanks Jason. Hmmmm I'm in two minds now whether to wait until I order VS
2005 or continue with inheriting a base class...

"Jason Coyne" <ga******@gmail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
It depends on the version of .net you are running, and what you are
trying to do.

In .net 2005, the best way to do it is probably Master Pages, as the
other poster stated. You define your site look and feel in a master
page, leaving blank areas to be filled in and customized by each
content page.

In earlier versions (and you can still do all these in 2005) there are
some other methods :

1) Create a base class that all your pages inherit from, and add items
to the form collection in the base class to handle your shared look and
feel. You can also Response.Write from the base class

2) Use user controls, or custom server controls. Put shared look and
feel into these controls, and then drop them onto each page. This is
evry simmilar to the effect you got in classic ASP using server side
includes. The downside to this method is that you must manually modify
each page, and if your overall page design layout changes in the
future, you need to go through and retouch each page again.
JJ wrote:
Having done most of the background sql coding I'm now ready to start
designing my asp.net web pages.

A basic question though - is there a way of having 'common' elements on
pages (e.g. a header)?
This used to be done using frames, but I undertand these are now not
advised.

Basically what I want is to have some text/code that is common to all
pages,
but that I only need to update in one place?

Does that make sense??

Jun 13 '06 #5
ASP.NET 1.1 Master Pages, Themes and Skins using your own templates and
providers or some solution others have documented assuming you could
understand their logic and cope with what may then be discovered to not be
as ideal as the getting over the little boo-boo by upgrading to 2.0 and
having it all handed to you right out of the framework all nice and neat
(more or less).

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"JJ" <ab*@xyz.com> wrote in message
news:ek**************@TK2MSFTNGP03.phx.gbl...
Thanks. Unfortunately I'm using .net 1.1 . (at least for now) so if
there's any way of doing it with this then please let me know
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:eo**************@TK2MSFTNGP05.phx.gbl...
ASP.NET 2.0 Master Pages, Themes and Skins

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"JJ" <ab*@xyz.com> wrote in message
news:eC**************@TK2MSFTNGP03.phx.gbl...
Having done most of the background sql coding I'm now ready to start
designing my asp.net web pages.

A basic question though - is there a way of having 'common' elements on
pages (e.g. a header)?
This used to be done using frames, but I undertand these are now not
advised.

Basically what I want is to have some text/code that is common to all
pages, but that I only need to update in one place?

Does that make sense??



Jun 14 '06 #6
JJ
Just out of interest, whats the significant differenct between Visual Web
Express 2005 and the professional version when it comes to asp.net (using
vb) development and page design?

The thought of being able to potentially do all my work in VS as opposed to
swapping and changing with dreamweaver is a big bonus.

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
ASP.NET 1.1 Master Pages, Themes and Skins using your own templates and
providers or some solution others have documented assuming you could
understand their logic and cope with what may then be discovered to not be
as ideal as the getting over the little boo-boo by upgrading to 2.0 and
having it all handed to you right out of the framework all nice and neat
(more or less).

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"JJ" <ab*@xyz.com> wrote in message
news:ek**************@TK2MSFTNGP03.phx.gbl...
Thanks. Unfortunately I'm using .net 1.1 . (at least for now) so if
there's any way of doing it with this then please let me know
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in
message news:eo**************@TK2MSFTNGP05.phx.gbl...
ASP.NET 2.0 Master Pages, Themes and Skins

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"JJ" <ab*@xyz.com> wrote in message
news:eC**************@TK2MSFTNGP03.phx.gbl...
Having done most of the background sql coding I'm now ready to start
designing my asp.net web pages.

A basic question though - is there a way of having 'common' elements on
pages (e.g. a header)?
This used to be done using frames, but I undertand these are now not
advised.

Basically what I want is to have some text/code that is common to all
pages, but that I only need to update in one place?

Does that make sense??




Jun 14 '06 #7
I've been using Visual Studio and utilize less than half of its Enterprise
capabilities so AFIK the most significant difference in this context is the
presence of wizards and code generators. Depending on the scope of one's
work, it also depends on how much a person needs to depend on wizards and
generator to remain productive. After that question is resolved it becomes
IMO a simple matter of fundamental competencies.

When tables were the dominant element for page design a tool like HomeSite
included a table generator (which I still use in conjunction with Visual
Studio 2005) and that table generator was for some time a priceless
feature. Once generated however, when using HomeSite a developer has to
modify tables by hand as HomeSite can not dynamically edit what it has
generated. When Dreamweaver/FrontPage came along and made it possible to
dynamically edit generated HTML productivity increased. However, dynamic
table generation and editing seems to be a commodity in all web
design/development tools developed by the major vendors these days. So IMO
they are all fundamentally the same. Even more considerable is the fact that
nobody's tools automate or generate markup styled with CSS in the same way
tables have been and can be dynamically generated and maintained.

So we're right back to square one and the question of one's competency with
page layout vs one's dependency on page layout generators as the quest for
productivity in the tools has shifted from page layout to development and
generation of the "code behind." In that regard the name of the game is
currently Visual Studio 2005 followed by the Express line of applications
noting Microsoft also has new tools that are taking this paradigm even
further [1].

<%= Clinton Gallagher

[1] http://www.microsoft.com/products/ex...n/default.mspx


"JJ" <ab*@xyz.com> wrote in message
news:em**************@TK2MSFTNGP02.phx.gbl...
Just out of interest, whats the significant differenct between Visual Web
Express 2005 and the professional version when it comes to asp.net (using
vb) development and page design?

The thought of being able to potentially do all my work in VS as opposed
to swapping and changing with dreamweaver is a big bonus.

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
ASP.NET 1.1 Master Pages, Themes and Skins using your own templates and
providers or some solution others have documented assuming you could
understand their logic and cope with what may then be discovered to not
be as ideal as the getting over the little boo-boo by upgrading to 2.0
and having it all handed to you right out of the framework all nice and
neat (more or less).

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"JJ" <ab*@xyz.com> wrote in message
news:ek**************@TK2MSFTNGP03.phx.gbl...
Thanks. Unfortunately I'm using .net 1.1 . (at least for now) so if
there's any way of doing it with this then please let me know
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in
message news:eo**************@TK2MSFTNGP05.phx.gbl...
ASP.NET 2.0 Master Pages, Themes and Skins

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"JJ" <ab*@xyz.com> wrote in message
news:eC**************@TK2MSFTNGP03.phx.gbl...
> Having done most of the background sql coding I'm now ready to start
> designing my asp.net web pages.
>
> A basic question though - is there a way of having 'common' elements
> on pages (e.g. a header)?
> This used to be done using frames, but I undertand these are now not
> advised.
>
> Basically what I want is to have some text/code that is common to all
> pages, but that I only need to update in one place?
>
> Does that make sense??
>
>
>



Jun 14 '06 #8

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

Similar topics

54
by: seberino | last post by:
Many people I know ask why Python does slicing the way it does..... Can anyone /please/ give me a good defense/justification??? I'm referring to why mystring gives me elements 0, 1, 2 and 3...
0
by: James Walters | last post by:
Hello, DB novice checking in here with a basic design question. I have a table called 'nms_apps' which stores information about all of our applications which we have developed/maintained for...
5
by: Bob Alston | last post by:
I am looking for any Microsoft Access based software that could be used for a United Way agency that provides basic needs assistance - food, clothing, financial (rent, utilities, Rx, gasoline,...
9
by: Malcolm | last post by:
After some days' hard work I am now the proud possessor of an ANSI C BASIC interpreter. The question is, how is it most useful? At the moment I have a function int basic(const char *script,...
12
by: Ralf Dieholt | last post by:
I still donīt get it - what is the advantage of C ? I can program anything in BASIC V2 on a C64, does C have any advantages over BASIC V2 ? Seems to be more cryptic than BASIC to me.
56
by: Dave Vandervies | last post by:
I just fixed a bug that some of the correctness pedants around here may find useful as ammunition. The problem was that some code would, very occasionally, die with a segmentation violation...
6
by: Simon Walsh | last post by:
I'm an Electronics student in college and I'm currently working on a project. I was given a circuit diagram for my project, from which I had to design a printed circuit board to be sent off and...
11
by: research | last post by:
Hi, I'm using Visual Basic 2005 Express Edition to develop small tools in relation with our applications and I'm facing a problem using the interface. It sometimes happens that the design...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.