Is it possible t set a control's property in the markup using server tags? Specifically in this case I need to set it from a Session value, ideally something like this:
<asp:Label ID="Label1" runat="server" Text='<%= Session["value"] %>' />
Of course the above simply prints as literal text, rather than evaluating the expression.
I know I can do it in the code behind, but in the circumstances it would be a lot cleaner if I could somehow do it in the markup or "bind" the property to the Session value.
Open to ideas, any suggestions appreciated.