title: Passing model to layout in MS MVC
body: <p>In views i`m passing model strongly typed way like this:  </p>
  
  <pre><code>System.Web.Mvc.ViewPage&lt;HomeModel&gt;
  </code></pre>
  
  <p>And then just use it:  </p>
  
  <pre><code>&lt;%= Model.Greeting %&gt;
  </code></pre>
  
  <p>How it would be possible to use strongly typed model in layout?</p>
  
  <p>Without strongly typing i would probably add necessary data at controller factory, then use it through (LayoutModel)Viewdata["LayoutModel"]).Tralala, but i`m looking for better way.</p>