I'm clearly missing something fundamental here but could someone explain why label 2 isn't populated?
My codebehind
public partial class namespace : System.Web.UI.Page
{
public string TestString = "test";
protected void Page_Load(object sender, EventArgs e)
{
lbl1.Text = TestString;
}
}
my aspx text labels:
<asp:Label ID="lbl1" runat="server" /><br/>
<asp:Label ID="lbl2" runat="server" Text='<%# TestString %>' /><br />