473,597 Members | 2,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Foo ter"
Assembly="Some. Header.And.Foot er" %>

<cor:HeaderAndF ooter 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 1607
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.c om...

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.Foo ter"
Assembly="Some. Header.And.Foot er" %>

<cor:HeaderAndF ooter 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
3216
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 over each document, find out if it contains a header and/or a footer and extract only the main content part. The headers and the footers have no specific format and I have to detect and remove them using a list of strings that may appear as...
1
1799
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 postback, and it is. However, I've noticed an intriguing thing which I think might be at the root of the problem. My page inherits from a basepage, which in turn inherits from System.Web.UI.Page. On initial load, the events fire something like...
3
3143
by: mg | last post by:
Any articles and/or examples on adding header/footer to WebForm (C#) ?
3
1934
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 following reasons: 1) Render blocks are not allowed inside a templated control. 2) I want the inner controls scoped at the parent aspx (or ascx), not at the template naming container. This type of control would be ideal for website headers and...
1
9341
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 GridView.Visible = True. I press HIDE and the GridView disappears as expected. After it I press SHOW and the GridView doesn't show.
0
2248
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 assistance. I say additional because I've already had help which is greatly appreciated. I do try to take the time and understand the provided script in hopes on not having to trouble others on those. But here it goes...
4
2745
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 link, if viewed as a full screen. If you shrink the window down the Fees link then becomes a link. The link works in IE and Mozilla. I've validated the CSS and XHTML, the CSS had no errors, the XHTML has no errors other than the paramaters for the...
23
2774
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 place a link on there site so people can vote for their program, "ad a click". eg someone clicks the link on some page and it counts +1 click on my page. if some one clicks the link below it will count a click on my page.
0
2839
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. Here is the website: holtz-realty And also the html file and css file. Anny help will by mostly appreciated. I did try everything I can think of. HTML:
0
7971
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8381
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8040
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8259
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6698
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3889
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2408
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1495
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1243
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.