Ok, I thought I knew how to do this.... even though it has been one year since I last programmet .Net.
Update: I've moved my code from the MasterPage to an aspx Template. And still nothing is displayed.
In my aspx templatefile I have the following code:
<asp:Content ContentPlaceHolderID="mainAndRightRegion" runat="server">
My label: <asp:Label ID="txtString" CssClass="myTestLabel" runat="server" />
</asp:Content>
In my code behind, I have the following code:
private void Page_Load(object sender, System.EventArgs e)
{
this.txtString.Text = "TEST";
}
What am I mssing here?