msurfingworld
New Member
I'm sure it's elementary but I can't figure it out. This does not work - the the binding expression is passed as string to the control:\[code\]<uc:usercontrol runtat="server" message='<%#Me.protectedVariable%>'/>\[/code\]The code behind include a Page.Databind() call in page_load.But this does work:\[code\]<uc:usercontrol runat="server" id="usercontrol1"/>\[/code\]And in code behind page_load:\[code\]usercontrol1.message = Me.protectedVariable\[/code\]Do I have to bind from the code-behind? Is this a page life cycle issue?