<p>I'm creating a control and need to pass it the current logon user as a parameter (declaratively)</p>

<p>I tried this but didn't work (I got "&lt;%= User.Identity.Name %>" as value):</p>

<pre><code>&lt;cc1:MyControl id="myid" runat="server" User="&lt;%= User.Identity.Name %&gt;" /&gt;
</code></pre>

<p>Is there a way to do it?</p>

Try using:
```
```
User="<%= User.Identity.Name %>"
```
```
%= is for output
%# is for databinding.