Solved

Dymanic Web Template or Master Page - Microsoft Expression Web

Posted on 2007-03-23
2
1,296 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

856 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