title: How can I write dynamic data to page layout in MVC 3 Razor?
body: <p>I have MVC 3 C# project with Razor engine.  What are the ways and, I guess, the best practices to write dynamic data to the _Layout.cshtml?</p>
  
  <p>For example, maybe I'd like to display user's name in the upper right corner of my website, and that name is coming from Session, DB, or whatever based on what user is logged in.</p>
  
  <p>UPDATE:  I'm also looking for a good practice on rendering certain data into the  element of the Layout.  For example, if I need to render a specific CSS file depending on the logged-in user's credentials.</p>
  
  <p>(For the example above, I thought of using Url Helpers.)</p>