Master pages without ASP
4 posts
• Page 1 of 1
Master pages without ASP
Just wondering... when working with ASP.Net, I can use masterpages to set a default layout for all pages and then modify a content section for each page individually, which makes it easy to modify the layout of the site later. With basic HTML and CSS, I'd have to do a lot of re-working each page to do this. Is there any way to do this without having to use ASP.net or some type of CMS? My host doesn't support asp.net, and I'm just wondering if there's another way to do something similar without a CMS because it'd be handy for simpler sites.
does the hosting support any type of scripting (php, asp)? You could also use an HTML template if you have Dreamweaver as it allows you to define things that will be the same on all pages that use the template and then updates everything when the template changes. You could also use iframes in HTML, but pages can get funny when doing that.
- imnuts
- Posts: 7457
- Joined: Wed Mar 24, 2004 5:19 am
- Location: Boothwyn, Pennsylvania
- Real Name: Mark
with PHP and ASP, it's fairly simple as you only have to make an HTML file with the content that you want constant and put
into each page that would be a php file and have php tags somewhere before and after the above line. ASP is similar, though I don't remember it exactly, but it's about as simple.
- Code: Select all
include("filename.html");
into each page that would be a php file and have php tags somewhere before and after the above line. ASP is similar, though I don't remember it exactly, but it's about as simple.
- imnuts
- Posts: 7457
- Joined: Wed Mar 24, 2004 5:19 am
- Location: Boothwyn, Pennsylvania
- Real Name: Mark
4 posts
• Page 1 of 1
Return to HTML, CSS, and Scripts
Who is online
Users browsing this forum: No registered users and 5 guests