title: Where is the equivalent of WebForms' Master Page codebehind files in ASP.NET MVC?
body: <p>Today is my first day working with MVC and I am trying to convert my existing Web Forms website into an MVC 4 site.</p>
  
  <p>I have done some reading and am starting to understand how things work but one thing I can not figure out is <strong>for the new Layouts</strong> (replacing MasterPages) <strong>where is the equivalent to the codebehind file</strong>? In my current site I have a Master Page that defines the general look and feel but also runs some code in the codebehind to changes a few things dynamically (for localization and DB generated menu system).</p>
  
  <p>So now that I am using MVC and Layouts I can not figure out where I would code all that at, can anyone please point me in the right direction?</p>
  
  <p><em>(I know MVC does not have code behinds it uses controllers for it.)</em></p>