How to modify <head> tag when using a master page?
- From: ericgla@xxxxxxxxx
- Date: 4 Dec 2005 10:21:22 -0800
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?
.
- Follow-Ups:
- Re: How to modify <head> tag when using a master page?
- From: agapeton
- Re: How to modify <head> tag when using a master page?
- From: Scott Allen
- Re: How to modify <head> tag when using a master page?
- From: Kevin Spencer
- Re: How to modify <head> tag when using a master page?
- Prev by Date: Re: Could not load file or assembly 'App_Web_tod59ga8' and similar
- Next by Date: ASP.NET: HtmlInputText = Nothing
- Previous by thread: Getting Database query error...
- Next by thread: Re: How to modify <head> tag when using a master page?
- Index(es):
Relevant Pages
|