repeated html code

S

starbuck

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
 
K

Kevin Spencer

User Controls.

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

Chris Moore

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
--------------------
 
S

Scott Mitchell [MVP]

starbuck said:
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/u...l=/library/en-us/dnaspp/html/usercontrols.asp

Happy Programming!

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top