ASP.NET MVC Master Page – Add Title and Meta tags to content pages (SEO)

Solution: 
Add a ContentPlaceHolder in the tag of the Master page, add the universal Title and Meta tags that may apply to each page using the master page.

Override this ContentPlaceHolder in the content pages using the Master page and add the page specific Title and Meta tags in this section as shown below in the blog.


MasterPage.master

 <-- head -->
<asp:ContentPlaceHolder ID="TitleContent" runat="server">
<title>Master Page Titletitle>
<meta name="keywords" content="Cachinko, Career Networking, Social Networking, Job Search, Boost Employee Referral Program, Find Passive Candidates " />
<meta name="description" content="Cachinko is a career networking tool that helps Employers network securely with their employees and reduce recruiting costs by efficiently utilizing the Employee Referral Program." />
  asp:ContentPlaceHolder>
<-- /head -->

Page.aspx (using MasterPage.master)

<--Page Specific Title and Meta tags--> 
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
<title>Social Recruiting Solutions for Employers at Cachinko – Where Career Networking Really Pays!title>
<meta name="description" content="Cachinko is a career networking platform for employers. Join employer networks with your account, network with employees, manage your ATS network, employer referral program, talent networks & more. Candidate management & referral tracking simplified at Cachinko" />
<meta name="keywords" content="ats networking, employer referral, employee referral tracking, employer referral program, diversity recruitment, job posts, candidate management, referral tracking, talent networks, social recruiting, employer account, employer network, career networking, cachinko" />
asp:Content>

Comments

Popular posts from this blog

WPF How to Dispose ViewModel when the associated UserControl (Not Window) closes?

C# How to unit test Dispatcher

WPF: How to Deep Copy WPF object (e.g. UIElement) ?