Solved

Dymanic Web Template or Master Page - Microsoft Expression Web

Posted on 2007-03-23
2
1,289 Views
Last Modified: 2013-12-25
I am developing a web site with few pages. I am using Microsoft Expression Web as a tool and I am new to this.How I can create Dynamic Web Template  or Master Page and attach it to other pages?
0
Comment
Question by:peterdevadoss
  • 2
2 Comments
 
LVL 29

Accepted Solution

by:
rdivilbiss earned 50 total points
ID: 18780766
Well I just downloaded the free trial and don't pretend to be expert, but I simply created a new page, added the content I want to be the same for all pages, such as meta tags, a common external style sheet, some javascript includes, banner, footer includes, etc...I added editable content regions for the main body content and the right column and saved it as a dynamic web template.

Now when I select File -> New -> Create From Dynamic Web Template and select that file I get a new page with all the common elements waiting for me to change the content of the editable regions.

I'd be happy with that. I didn't figure out master pages.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@ Page Language="C#" %>
<html lang="en">

<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="expires" content="now-1">
<meta http-equiv="pragma" content="no-cache">
<meta name="author" content="Roderick Divilbiss">
<meta name="copyright" content="© 2005, 2006 Roderick Divilbiss">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta name="robots" content="index,follow">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="include/css/all.css">
<script type="text/javascript" src="include/allPages.js"></script>
<script type="text/javascript" src="include/allForms.js"></script>
<!-- #BeginEditable "doctitle" -->
<title>Title</title>
<!-- #EndEditable -->
</head>

<body>

<form id="form1" runat="server">
      <div id="topmenu">
            <!--#include file="topMenu.htm"--></div>
      <div id="banner">
            <!--#include virtual="include/banner.htm"--></div>
      <div id="mainmenu">
            <!--#include file="mainMenu.htm"--></div>
      <div id="middle">
            <div id="content">
                  <!-- #BeginEditable "content" -->Content<!-- #EndEditable --></div>
            <div id="nav">
                  <!--#include file="leftMenu.htm"--></div>
            <div id="right">
                  <!-- #BeginEditable "right" -->Right<!-- #EndEditable --></div>
            <div id="bottomMenu">
                  <!--#include virtual="include/bottomMenu.htm"--></div>
            <div id="pageCopyright">
                  <!--#include virtual="include/copyright.htm"--></div>
            <div id="legal">
                  <!--#include virtual="include/legal.htm"--></div>
      </div>
</form>

</body>

</html>

0
 
LVL 29

Expert Comment

by:rdivilbiss
ID: 18781356
Okay...the master page needs content @Master and <asp:ContentPlaceHolder ...>'s added.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@ Master Language="VB" %>
<html lang="en">

<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<asp:ContentPlaceHolder id="head" runat="server">
<meta http-equiv="expires" content="now-1">
<meta http-equiv="pragma" content="no-cache">
<meta name="author" content="Roderick Divilbiss">
<meta name="copyright" content="© 2005, 2006 Roderick Divilbiss">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta name="robots" content="index,follow">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="include/css/all.css">
<script type="text/javascript" src="include/allPages.js"></script>
<script type="text/javascript" src="include/allForms.js"></script>
<!-- #BeginEditable "doctitle" -->
<title>Title</title>
<!-- #EndEditable -->
</asp:ContentPlaceHolder>
</head>

<body>

<form id="form1" runat="server">
  <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

      <div id="topmenu">
            <!--#include file="topMenu.htm"--></div>
      <div id="banner">
            <!--#include virtual="include/banner.htm"--></div>
      <div id="mainmenu">
            <!--#include file="mainMenu.htm"--></div>
      <div id="middle">
            <div id="content">
                  <!-- #BeginEditable "content" -->Content<!-- #EndEditable --></div>
            <div id="nav">
                  <!--#include file="leftMenu.htm"--></div>
            <div id="right">
                  <!-- #BeginEditable "right" -->Right<!-- #EndEditable --></div>
            <div id="bottomMenu">
                  <!--#include virtual="include/bottomMenu.htm"--></div>
            <div id="pageCopyright">
                  <!--#include virtual="include/copyright.htm"--></div>
            <div id="legal">
                  <!--#include virtual="include/legal.htm"--></div>
      </div>
  </asp:ContentPlaceHolder>

</form>

</body>

</html>

I like the plain dwt better.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now