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

repeated html code

P: n/a
Hi

I want to put the same banner and text at the top of all my asp pages but I
do not want to use frames and I would rather not have to repeat the code. Is
there a include command available that will read in a seperate html page and
merge it in?

Thanks in advance


---
Outgoing mail is certified Virus Free, so am I.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.669 / Virus Database: 431 - Release Date: 26/04/2004
Nov 18 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
User Controls.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"starbuck" <st******@mbssoft.co.uk> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
Hi

I want to put the same banner and text at the top of all my asp pages but I do not want to use frames and I would rather not have to repeat the code. Is there a include command available that will read in a seperate html page and merge it in?

Thanks in advance


---
Outgoing mail is certified Virus Free, so am I.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.669 / Virus Database: 431 - Release Date: 26/04/2004

Nov 18 '05 #2

P: n/a
You can Create a custom UserControl with all of the banner information that
you want. Then, place this UserControl on the top of your pages.

Chris
--------------------
From: "starbuck" <st******@mbssoft.co.uk>
Subject: repeated html code
Date: Fri, 30 Apr 2004 14:15:32 +0100
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <OM**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: dsl-217-155-86-254.zen.co.uk 217.155.86.254
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP12
.phx.gblXref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:230335
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hi

I want to put the same banner and text at the top of all my asp pages but I
do not want to use frames and I would rather not have to repeat the code. Isthere a include command available that will read in a seperate html page andmerge it in?

Thanks in advance


---
Outgoing mail is certified Virus Free, so am I.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.669 / Virus Database: 431 - Release Date: 26/04/2004


Nov 18 '05 #3

P: n/a
starbuck wrote:
I want to put the same banner and text at the top of all my asp pages but I
do not want to use frames and I would rather not have to repeat the code. Is
there a include command available that will read in a seperate html page and
merge it in?


User Controls are the way to go. In fact, might I recommend that you
check out my article:

An Extensive Examination of User Controls
http://msdn.microsoft.com/asp.net/us...ercontrols.asp

Happy Programming!

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
Nov 18 '05 #4

P: n/a
Thanks guys

"Scott Mitchell [MVP]" <mi******@4guysfromrolla.com> wrote in message
news:40**************@4guysfromrolla.com...
starbuck wrote:
I want to put the same banner and text at the top of all my asp pages but I do not want to use frames and I would rather not have to repeat the code. Is there a include command available that will read in a seperate html page and merge it in?
User Controls are the way to go. In fact, might I recommend that you
check out my article:

An Extensive Examination of User Controls

http://msdn.microsoft.com/asp.net/us...ercontrols.asp
Happy Programming!

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!

---
Outgoing mail is certified Virus Free, so am I.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.669 / Virus Database: 431 - Release Date: 26/04/2004
Nov 18 '05 #5

P: n/a
Thanks Guys

"Scott Mitchell [MVP]" <mi******@4guysfromrolla.com> wrote in message
news:40**************@4guysfromrolla.com...
starbuck wrote:
I want to put the same banner and text at the top of all my asp pages but I do not want to use frames and I would rather not have to repeat the code. Is there a include command available that will read in a seperate html page and merge it in?
User Controls are the way to go. In fact, might I recommend that you
check out my article:

An Extensive Examination of User Controls

http://msdn.microsoft.com/asp.net/us...ercontrols.asp
Happy Programming!

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!

---
Outgoing mail is certified Virus Free, so am I.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.673 / Virus Database: 435 - Release Date: 01/05/2004
Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.