<%#
is for databinding context only. So you need to call DataBind
on the NamingContainer
of this control. In this case the page itself:
For example in Page_Load
:
this.DataBind();
Here's a quick overview over the inline asp.net tags.
I would prefer using codebehind without the inline aspx since that's confusing and also hard-wiring the view with the business logic.