473,396 Members | 2,030 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.

Help: Webform Header & Footer Control


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
2 1586
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Neri | last post by:
Some document processing program I write has to deal with documents that have headers and footers that are unnecessary for the main processing part. Therefore, I'm using a regular expression to go...
1
by: Karl Seguin | last post by:
i have a dynamically created user control which contains a non-dynamically created ASP.Net button. When the button is clicked, the event is not fired. I know that the control must be created on...
3
by: mg | last post by:
Any articles and/or examples on adding header/footer to WebForm (C#) ?
3
by: John Crowley | last post by:
I keep running into this over and over again... I want a block server control that renders a header and footer, and child controls in between. But I don't want a templated control, for the...
1
by: Miguel Dias Moura | last post by:
Hello, I have a GridView in my page which is created in runtime. It works fine. My page has 2 Asp Buttons: - The HIDE button makes GridView.Visible = False; - The SHOW button makes...
0
by: ward | last post by:
Greetings. Ok, I admit it, I bit off a bit more than I can chew. I need to complete this "Generate Report" page for my employer and I'm a little over my head. I could use some additional...
4
by: jereme.goblue | last post by:
The web page at http://www.rossowinspections.com/ has an issue with the left menu. The left menu has 7 links. One of the links doesn't work. Using Firefox 1.5 the Fees link isn't a clickable...
23
by: casper christensen | last post by:
Hi I run a directory, where programs are listed based on the number of clicks they have recieved. The program with most clicks are placed on top and so on. Now I would like people to be apple to...
0
by: richard12345 | last post by:
Hi Guys I have problem with site I am building. The sidebar with menu and other thinks is overlapping footer. The footer move with the content and but it dos it dos not move with the sidebar. ...
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: 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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.