E
ericgla
I am creating a web app using asp.net 2.0 where all pages are based a
single master page. On some of the aspx pages I need to add javascript
to the head tag in order to use Google maps.
I tried this to access the header:
In the master page:
<HEAD runat="server">
In the aspx page: Page_Load
HtmlHead head = (System.Web.UI.HtmlControls.HtmlHead)Header;
i get this error:
"Cannot get inner content of because the contents are not literal"
Is there a way to programatically add to the head tag from within an
aspx page when using master pages?
single master page. On some of the aspx pages I need to add javascript
to the head tag in order to use Google maps.
I tried this to access the header:
In the master page:
<HEAD runat="server">
In the aspx page: Page_Load
HtmlHead head = (System.Web.UI.HtmlControls.HtmlHead)Header;
i get this error:
"Cannot get inner content of because the contents are not literal"
Is there a way to programatically add to the head tag from within an
aspx page when using master pages?