I am creating a control and have to pass it to the current login user as a parameter (declaratively)
I tried this but didn't work (I got "<% = User.Identity.Name%>" as value):
<cc1:MyControl id="myid" runat="server" User="<%= User.Identity.Name %>" />
Is there a way to do this?
juan
source
to share