Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <asp:ContentPlaceHolder ID="cphHead" runat="server">
- <title>Default Title</title>
- <meta name="description" content="Default Description" />
- <meta name="keywords" content="Default Keywords" />
- </asp:ContentPlaceHolder>
- </head>
- <asp:Content ID="headContent" ContentPlaceHolderID="cphHead" runat="server">
- <title>Page Specific Title</title>
- <meta name="description" content="Page Specific Description" />
- <meta name="keywords" content="Page Specific Keywords" />
- </asp:Content>
- public class BaseViewData
- {
- public string Title { get; set; }
- public string MetaKeywords { get; set; }
- public string MetaDescription { get; set; }
- }
- public partial class Site : System.Web.Mvc.ViewMasterPage<BaseViewData>
- {
- }
- <title><%=ViewData.Model.Title %></title>
- <meta name="keywords" content="<%=ViewData.Model.MetaKeywords %>" />
- <meta name="description" content="<%=ViewData.Model.MetaDescription %>" />
Add Comment
Please, Sign In to add comment