Solved

Dymanic Web Template or Master Page - Microsoft Expression Web

Posted on 2007-03-23
2
1,298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

762 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