locked
Can't access "preview in browser" function after constructing a Master Page. RRS feed

  • Question

  • I have a test version of MS Expression Web 4. I thought I had some of it figured out yesterday. Here is how I started. I believe I got this approach from "Help". I was attempting to construct a "Master Page" and I think I understand the concept of a master page. Here is what I did. I hit file, then, new, then page, then ASP.net, then masterpage. I therefore started with a blank page. I created my own table and cells and worked form there. The problem is that after I save it, the "view it in browser" function does not work.  Any ideas? I have included all of the code generated for the page. Also other pages are not created when I save.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ Master Language="C#" %>
    <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">

    <head runat="server">
    <meta content="en-us" http-equiv="Content-Language" />
    <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
    <title>Untitled 1</title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
    <style type="text/css">
    .auto-style1 {
     text-align: center;
     color: #FFFF00;
    }
    .auto-style2 {
     text-align: center;
     font-family: Verdana, Geneva, Tahoma, sans-serif;
     font-size: xx-large;
     color: #FFFF00;
    }
    .auto-style3 {
     border: 2px solid #008000;
     background-color: #008000;
    }
    .auto-style4 {
     text-align: left;
     font-size: large;
     color: #FFFF00;
     border: 2px solid #008000;
     background-color: #008000;
    }
    .auto-style5 {
     text-align: center;
     font-size: large;
     color: #FFFF00;
     border: 2px solid #008000;
     background-color: #008000;
    }
    .auto-style6 {
     vertical-align: middle;
    }
    .auto-style7 {
     text-align: center;
     color: #FFFFCC;
     border: 2px solid #008000;
     background-color: #008000;
    }
    .auto-style8 {
     border: 3px solid #000000;
    }
    </style>
    </head>

    <body style="background-color: #C0C0C0">

    <form id="form1" runat="server">
     <table cellpadding="0" cellspacing="0" class="auto-style8" style="width: 100%; height: 477px">
      <tr>
       <td class="auto-style3" rowspan="3" style="width: 121px">&nbsp;</td>
       <td class="auto-style3" colspan="2" style="height: 69px">
       <h1 class="auto-style1">NARROW ESACAPE HUMANITARIAN RELIEF
       ORGANIZATION</h1>
       <p class="auto-style2"><strong>NEHRO</strong></p>
       </td>
      </tr>
      <tr>
       <td class="auto-style4" style="height: 260px; width: 421px"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       Helping People in Need Around the World.</strong></td>
       <td class="auto-style5" style="height: 260px" valign="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       &nbsp;<img alt="" class="auto-style6" height="221" src="Narrow%20Escape/NarrowLogoBorder3.jpg" width="242" /></td>
      </tr>
      <tr>
       <td class="auto-style7" colspan="2">Narrow gets it&#39;s name from
       letters written by children that escaped from the Lord&#39;s Resistance
       Army in Northern Uganda.&nbsp; <br />
       Some of the letters were titled, &quot;Narrow Escape&quot;</td>
      </tr>
     </table>
     <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
     </asp:ContentPlaceHolder>
    </form>

    </body>

    </html>

    • Moved by Lori DirksModerator Monday, January 31, 2011 9:24 PM moving to xweb (From:Expression Design)
    Monday, January 31, 2011 5:16 PM

All replies

  • {"pemongillo" wrote in message news:af24620a-51b1-4fad-b9c6-88150944917a@communitybridge.codeplex.com...
    I have a test version of MS Expression Web 4.}

    This is the Expression Design forum. You need to post your question in the Expression.en-US.web forum.

    Nancy Ward
    Windows 8 BetaFerret


    Nancy Ward
    Monday, January 31, 2011 6:16 PM
  • Nancy,

    I have no idea where you are suggesting I go to post this question. I can not find the option you suggested. Help me out a little more. This is my second post regarding MS Expression 4 and I got responses to my first question. I am a little confused at how this forum works.

    Thanks

    Paul

    Monday, January 31, 2011 8:52 PM
  • Here is the index for all the forums for the Expression Suite:

    http://social.expression.microsoft.com/Forums/en-US/category/expressionstudio

    Each product has its own forum because it is easier to have help. Designers will answer and post on the Design Forum (this one), web developers on the Expression Web, silverlight developers on Blend, and so on. Even if you bought only Expression Web, you got two products: Expression Web itself for html, and Expression Design that is a vector graphic software. It is boundled to Expression Web because almost every web developer need some graphic manipulation tools. So this forum is the right place for question about graphic design using Expression Design, this other is for problems with web pages: http://social.expression.microsoft.com/Forums/en-US/web/threads

    For your specific problem, I can try a suggestion: master pages are like templates, they cannot exists or be displayed on they own, you need to use them to create a content page. So you need to create a new page based on this master page, when you open this new page in the browser, it will inherit everything on the master page plus its own content.

    Monday, January 31, 2011 9:32 PM
  • Looks like your thread has moved in the correct forum while I was writing, so you don't need to move or post it elsewhere anymore.
    Monday, January 31, 2011 9:36 PM
  • Thanks Elena,

    This decision to let Frontpage go has been a long time coming. I knew it would be a difficult transition. I only have a test copy right now, but if I decide topurchase the software, I will purchase a book and or take a class to get going. Just like to see what I can figure out on my own first.

    Thanks again.

    Monday, January 31, 2011 9:37 PM
  • Create a page from the master page and preview that.
    Also, make sure you have EW set to preview the page using the developement server.
    With the site open Site > Site settings > Preview tab.


    Expression Web MVP
    Monday, January 31, 2011 9:38 PM
  • {Nancy,

    I have no idea where you are suggesting I go to post this question. I can not find the option you suggested. Help me out a little more. This is my second post regarding MS Expression 4 and I got responses to my first question. I am a little confused at how this forum works.}
    ======

    URK! Now, you're in the proper place. Most likely someone moved your post to the proper forum. I forgot that could be done.

    Nancy Ward
    Windows 8 BetaFerret


    Nancy Ward
    Tuesday, February 1, 2011 5:13 AM
  • Steve,

    IIRC the master page like the dwt is not meant to be published and and viewed as a web page am I correct in that assumption?

    Thanks for all solid advice you give.

    MIKE E


    "It's like déjà vu all over again." — Yogi Berra
    Tuesday, February 1, 2011 8:13 PM
  • Mike E,

    You are wrong in the assumption that a master page is not meant to be published.  A DWT doesn't need to be published.  A master page MUST be published.

    So, were you talking about a master page, or a DWT named master.dwt?  Two different things.

    Tuesday, February 1, 2011 8:31 PM
  • Kathy,

    The loacation of the master page on the server was not what I was refering to.  The master page resides on the server for other pages to access.  BUT the master page itself would not be called to the browser on it's own.  example http://www.yoursitesmasterpage.com/yourmaster.master

    I come to this conclusion because with the master page .master open the preview in browser button is not active.  This is noted in EW4 as well as Visual Studio Pro 2010. 

    That then being the reason that the OP could not preview in browser his .master page b/c it is not supposed to.

    Regards,

    MIKE E


    "It's like déjà vu all over again." — Yogi Berra
    Wednesday, February 2, 2011 2:25 PM
  • Well, I took your statement "not meant to be published" as meaning just that, especially in the context of comparing it to a DWT, which is what prompted my response.

    You are correct that a master page is not a page a browser sees by itself. Which is of course why Steve answered as he did.

    Wednesday, February 2, 2011 2:58 PM
  • Steve,

    IIRC the master page like the dwt is not meant to be published and and viewed as a web page am I correct in that assumption?

    Thanks for all solid advice you give.

    MIKE E

    Yes, the browser has no idea what a .master file is as it doesn't recognice the .master as a registered mime type
    Expression Web MVP
    Wednesday, February 2, 2011 3:57 PM