TemplateView for Mvc Cms

by Asp.net Mvc Filter - Repository on September 5th, 2009
No notes
Syntax: HTML
Show lines - Hide lines - Show in textbox - Download
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<EneticsModel.Entities.Page>" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <div id="page">
        <div id="Banner">
            <h2>Banner</h2>
            <p>
                Page administrator [Edit page] [Add content] [Website settings]
            </p>
        </div>
        <div id="content">  
            <div>
                <h2>Left</h2>
                <% foreach (var m in Model.Modules.Where(x => x.ModuleLocation == "Left")){ %>
                    <h3><%= m.ModuleTitle %> [Edit] [Delete]</h3>
 
                    Type: <%= m.ModuleType %>
                    <p>
                        <%= m.ModuleValuesContent["Content"] %>
                    </p>
                <%   } %>
            </div>
            <div>
                <h2>Middle</h2>
                <% foreach (var m in Model.Modules.Where(x => x.ModuleLocation == "Middle")){ %>
                    <h3><%= m.ModuleTitle %> [Edit] [Delete] </h3>
 
                    Type: <%= m.ModuleType %>
                    <p>
                        <%= m.ModuleValuesContent["Content"] %>
                    </p>
                <%   } %>
            </div>
            <div>
                <h2>Right</h2>
                <% foreach (var m in Model.Modules.Where(x => x.ModuleLocation == "Right")){ %>
                    <h3><%= m.ModuleTitle %> [Edit] [Delete] </h3>
 
                    Type: <%= m.ModuleType %>
                    <p>
                        <%= m.ModuleValuesContent["Content"] %>
                    </p>
                <%   } %>
            </div>
        </div>
    </div>
</body>
</html>
 

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS