I have an ASP.NET / C# application in which the Master Page contain the main menu of my application and several content pages that depend of this master page.
Just for a reference, I needed to do something similar and in order to get it working I added the runat="server" to the body tag (thanks to this thread).