Note that there are some explanatory texts on larger screens.

plurals
  1. POMVC 3: classic two-column layout with a header not showing in Site.Master
    primarykey
    data
    text
    <p>I am going for a classic two-column layout in Site.Master but nothing is happening. I have created a new _LayoutClient.cshtml file in Views/Shared folder and also a Site.Master file in the same folder. Going through normal process for controller class, I have a simple public ActionResult Index() method. When adding a new View file, I checked the 'Use a layout or master page: _LayoutClient.cshtml, for Index example (Index.cshtml) </p> <p>for MVC3 there is _ViewStart.cshtml so as you know I don't need to follow the process of DRY. In my Site.Master file I have done the following code... (Site1.css is actually from Sportstore sample application from the Pro ASP.NET MVC 2 Framework by Steven Sanderson)</p> <pre><code>&lt;asp:ContentPlaceHolder ID="head" runat="server"&gt; &lt;link rel="Stylesheet" href="~/Content/Site1.css" type="text/css" /&gt; &lt;/asp:ContentPlaceHolder&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;div&gt; &lt;asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"&gt; &lt;div id="header"&gt; &lt;div class="title"&gt;My Project&lt;/div&gt; &lt;/div&gt; &lt;div id="categories"&gt; Will put something useful here later &lt;/div&gt; &lt;/asp:ContentPlaceHolder&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p></p> <p>So I can only assume my CSS template is not being updated from Site.Master. I am using VS 2010, ASP.NET MVC 3 in C#. Please can someone have a look at tell me why there is no two-column layout. Thanks in advance. DB data is coming through. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload