Solved

Dymanic Web Template or Master Page - Microsoft Expression Web

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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

627 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