Hi, are there any examples that demonstrate how to build an ASP.NET page
with consistent parts of the layout, such as page headers, footers, and
navigation links (such as going into each section like Products, Company,
Services, etc)?
I know there are controls that you can use to build menus like ASP.NET menu.
But I'm talking more about the graphical elements and layout that needs to
be part of each page.
For example when I designed my site in old ASP I had include files. So I
did something like this from each page:
<!-- #INCLUDE VIRTUAL="/top-of-page.inc"-->
main page content goes here
<!-- #INCLUDE VIRTUAL="/bottom-of-page.inc"-->
But in ASP.NET that doesn't seem like a concept that works. Instead it
seems like maybe I have a common class or something that will write out my
headers and footers so I have a consistent look and feel, and so I can just
change nav links in one place as I make changes to the site instead of
having to change it on every page like I would if I had embedded it. Any
examples of how to handle this the "correct" or ideal way in ASP.NET would
be MUCH APPRECIATED. Thank you. 2 1151
You can implement a so-called "User Control". It works approximately
like this:
<%@ Register TagPrefix="myctl" TagName="Footer" Src="footer.ascx" %>
.... Later on: ...
<myctl:Footer id="footer1" runat="server" />
Use the keyword "User Control" to find it in the documentation pages.
Good luck!
On Thu, 10 Jun 2004 18:17:22 -0400, "Jason Hanks" <no******@acct.com>
wrote: Hi, are there any examples that demonstrate how to build an ASP.NET page with consistent parts of the layout, such as page headers, footers, and navigation links (such as going into each section like Products, Company, Services, etc)?
I know there are controls that you can use to build menus like ASP.NET menu. But I'm talking more about the graphical elements and layout that needs to be part of each page.
For example when I designed my site in old ASP I had include files. So I did something like this from each page:
<!-- #INCLUDE VIRTUAL="/top-of-page.inc"--> main page content goes here <!-- #INCLUDE VIRTUAL="/bottom-of-page.inc"-->
But in ASP.NET that doesn't seem like a concept that works. Instead it seems like maybe I have a common class or something that will write out my headers and footers so I have a consistent look and feel, and so I can just change nav links in one place as I make changes to the site instead of having to change it on every page like I would if I had embedded it. Any examples of how to handle this the "correct" or ideal way in ASP.NET would be MUCH APPRECIATED. Thank you.
Are there any samples like in the VB.NET resource kit or somewhere else
somecan can point me to where I can get a good look at how the site
navigation html source can be centralized in one location/class/file?
"pmb" <pa********@tokyo.com> wrote in message
news:hl********************************@4ax.com... You can implement a so-called "User Control". It works approximately like this:
<%@ Register TagPrefix="myctl" TagName="Footer" Src="footer.ascx" %> ... Later on: ... <myctl:Footer id="footer1" runat="server" />
Use the keyword "User Control" to find it in the documentation pages.
Good luck!
On Thu, 10 Jun 2004 18:17:22 -0400, "Jason Hanks" <no******@acct.com> wrote:
Hi, are there any examples that demonstrate how to build an ASP.NET page with consistent parts of the layout, such as page headers, footers, and navigation links (such as going into each section like Products, Company, Services, etc)?
I know there are controls that you can use to build menus like ASP.NET
menu.But I'm talking more about the graphical elements and layout that needs
tobe part of each page.
For example when I designed my site in old ASP I had include files. So I did something like this from each page:
<!-- #INCLUDE VIRTUAL="/top-of-page.inc"--> main page content goes here <!-- #INCLUDE VIRTUAL="/bottom-of-page.inc"-->
But in ASP.NET that doesn't seem like a concept that works. Instead it seems like maybe I have a common class or something that will write out
myheaders and footers so I have a consistent look and feel, and so I can
justchange nav links in one place as I make changes to the site instead of having to change it on every page like I would if I had embedded it. Any examples of how to handle this the "correct" or ideal way in ASP.NET
wouldbe MUCH APPRECIATED. Thank you. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mike Judkins |
last post by:
I'm looking for examples of websites (preferably large and well known
companies, not personal sites or developer-to-developer sites) that
use XML and XSLT as a technology platform from which to...
|
by: Jeff Thies |
last post by:
I have a site with javascript navigation menus (it's in the design spec).
There's a bit too many pages to do a bread crumb type alternate nav, and no
natural index page for each site section.
...
|
by: Tools |
last post by:
What's the best browser to test for website accessibility?
Is there a free screen reader I can use to test how my site reads best?
|
by: Richard Jenkins |
last post by:
Hi. I'd appreciate some comments/help with this site:
http://www.moonremovals.co.uk/new
The aim is to use css positioning to recreate something similar to:
<table>
<tr>
<td...
|
by: Robby |
last post by:
Hello,
I am trying to build a component that in turn usues a
designer.
How does the designer retrieve the projects datasets and
tables?
Are there any good examples of building a designer...
|
by: digitalcolony |
last post by:
I'm looking for examples of content rich sites that use minimal
navigation and are intuitive for the users. Has anyone seen a site
that can handle hundreds of articles that is still user-friendly...
|
by: Tim Dietz |
last post by:
Due to lack of time, I have used MS FrontPage to create a few web
sites. I've grown to despise it and want (and now have the time) to
really learn HTML, CSS, etc. to create new sites. One feature...
|
by: Murray R. Van Luyn |
last post by:
Hi,
Since I have made changes to my website it's been a complete flop. According
to the logs, as soon as visitors have downloaded the index page they are
off. I can't figure out why?
...
|
by: tharden3 |
last post by:
I have a question for you guys, I'm designing a website. Before I go any further, I'd like to get my navigation bars on the left side up and running. The site is themed to a bumblebee 'black and...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |