title: Access to MVC Models from standard ASCX UserControl
body: <p>I've got a simple ASCX user control (non-MVC). The user control has a property on it (let's call it Title or something).</p>
  
  <p>I've also got an MVC Partial View which contains the user control.</p>
  
  <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;SomeModel&gt;" %&gt;
  &lt;%@ Register TagPrefix="tag" TagName="Control" Src="~/path/to/ascx/control.ascx" %&gt;
  ... snip ...
  &lt;tag:Control ID="myControl" runat="server" /&gt;
  </code></pre>
  
  <p>What I'd like to be able to do is something like this:</p>
  
  <pre><code>&lt;tag:Control ID="myControl" runat="server" Title="&lt;%= Model.Title %&gt;" /&gt;
  </code></pre>
  
  <p>... so that I can access some property of the model inside my Control.
  Unfortunately this method doesn't work, as I get a message saying "This is not scriptlet. Will be output as plain text".</p>
  
  <p>Is what I'm trying to do even possible? If so, does anyone have any ideas how I can try and do it?</p>
  
  <p>If it's relevant, this is a .Net 4 project, with MVC 2 components.</p>
  
  <p>Thanks!
  Neil</p>