By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,402 Members | 1,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,402 IT Pros & Developers. It's quick & easy.

Help: Webform Header & Footer Control

P: n/a

Here is the issue:

1. I would like to create an ASP.Net/C# control to append a dynamic
header and footer to **every** web page (depending on the page the
content of each will vary).

I can easily create the control yet herein lay the problem:

2. The folks who edit the HTML content are NOT programmers and even
though the content pages will have an aspx extension, there will be
no code behind .cs

I really would prefer them not to be required to learn how to create a
code-behind and create an instance of my control.

My preference would be that each page has a simple tag such as

<%@ Register TagPrefix="cor" Namespace="Some.Header.And.Footer"
Assembly="Some.Header.And.Footer" %>

<cor:HeaderAndFooter id="header" runat="server" />

And the control renders the HTML without each .ASPX page requiring a
code-behind.

Is this possible?

Thank you for the help!

Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
While this doesn't answer your question directly, I think you'd find master
pages (which are built-in feature in 2.0). The best I've used are
MetaBuilders (free) http://www.metabuilders.com/Tools/MasterPages.aspx

it should give your non-programmers the clean separation needed.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Nicholas" <Gr*****@Erebos.com.uk> wrote in message
news:lt********************************@4ax.com...

Here is the issue:

1. I would like to create an ASP.Net/C# control to append a dynamic
header and footer to **every** web page (depending on the page the
content of each will vary).

I can easily create the control yet herein lay the problem:

2. The folks who edit the HTML content are NOT programmers and even
though the content pages will have an aspx extension, there will be
no code behind .cs

I really would prefer them not to be required to learn how to create a
code-behind and create an instance of my control.

My preference would be that each page has a simple tag such as

<%@ Register TagPrefix="cor" Namespace="Some.Header.And.Footer"
Assembly="Some.Header.And.Footer" %>

<cor:HeaderAndFooter id="header" runat="server" />

And the control renders the HTML without each .ASPX page requiring a
code-behind.

Is this possible?

Thank you for the help!

Nov 18 '05 #2

P: n/a
Thank you! I will look into these.

N.

In the year Tue, 16 Nov 2004 21:05:37 -0500, "Karl Seguin" <karl
REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> gave 50
chimpanzees 50 typewriters and this was what they wrote:
From: "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
References: <lt********************************@4ax.com>
Subject: Re: Webform Header & Footer Control
Date: Tue, 16 Nov 2004 21:05:37 -0500

While this doesn't answer your question directly, I think you'd find master
pages (which are built-in feature in 2.0). The best I've used are
MetaBuilders (free) http://www.metabuilders.com/Tools/MasterPages.aspx

it should give your non-programmers the clean separation needed.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Nicholas" <Gr*****@Erebos.com.uk> wrote in message
news:lt********************************@4ax.com.. .


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.