# re: ASP.NET 2.0 backwards compatible? NOT. Here's an obvious one - level 200
posted at Tuesday, August 17, 2004 3:32 AM by Anders Norås
The head element in the ASP.NET 2.0 page template is by default declared to run at the server. In addition the System.Web.UI.HtmlControls namespace has a new class called HtmlHead defined. When you set the id attribute of the head element to “Head” this becomes a member of your class (which inherits from System.Web.UI.Page).
The reason for you not seeing the code defining this member is that ASP.NET 2.0 uses partial classes to separate user defined code from tool generated code.
As a result of this you get a member naming conflict when defining an additional member called “Head” typed System.Web.UI.HtmlControls.HtmlGenericControl.
To solve your problem using your existing code which I reckon is similar to this:
ASPX snippet:
<head id="Head" runat="server">