CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/24/2008 3:56:31 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 202 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
xmichael
Asp.Net User
please help with the error: requires Page.Header to be non-null1/24/2008 3:56:31 PM

0

I am not sure how to approach this issue. The application is built based on custom template classes, not using MasterPages. There is a BaseClass and a page that inherits the BaseClass.
BaseClass overrides the Render method and CreateChildControls. 

I have added a menu control :

<asp:Menu ID="mnuRoot" runat="server" DataSourceID="SiteMapDataSource1"
        Orientation="Vertical" DisappearAfter="300" DynamicHorizontalOffset="0" EnableTheming="False" ForeColor="#000000" Font-Size="10" Font-Names="Verdana" SkipLinkText="" Width="115" CssClass="menu_Menu" > 
        <StaticMenuItemStyle BorderWidth="0" BorderStyle="none"  /> 
        <DynamicMenuStyle CssClass="menu_Menu" HorizontalPadding="20" /> 
</asp:Menu>

If I add the following line:

        <DynamicHoverStyle BackColor="ActiveCaption" />

I get this error:
Using Menu.DynamicHoverStyle requires Page.Header to be non-null (e.g. <head runat="server" />).
 

How to get rid of this error ? I would like to keep the existing custom templates but I don't know how to set up  <head runat="server" /> .

Thanks

orzeh
Asp.Net User
Re: please help with the error: requires Page.Header to be non-null1/25/2008 9:16:53 AM

0

hi!

I don`t know your template framework, but you must create the HtmlHead control and assign it to Page.Head.

to do this you must either set <head runat="server" /> in your aspx page or override Head property in your base class.

hope it helps

orzeh 


code less, think more!
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:

Web:
please help with the error: requires Page.Header to be non-null ... Using Menu.DynamicHoverStyle requires Page.Header to be non-null (e.g. ). How to get rid of this error ? ...
Tree View Navigation Error HoverStyle requires Page.Header to be non-null (e.g. ). ... Please help me fix this I am about to pull my hair out. ...
error when preview page - Directorforum Please review the stack trace for more information about ... StaticHoverStyle requires Page.Header to be non-null (e.g. ... help needed....page navigation problem, meetlenin, macromedia.authorware, 2, 18.10.2004 01:01 ...
Preview web page with menu Only the one with menus returns the error. What am I doing wrong? Server Error in '/Web test' Application. Using Menu.StaticHoverStyle requires Page.Header to be non-null (e.g. Problem with FPDF, please help. - Hot Scripts Forums This will save your data as a simple table (no header, no frills) in a file called "myFile.pdf" ... require('fpdf.php'); class PDF extends FPDF .... var $ PageSizes; //array storing non-default page sizes ..... function SetMargins($ left, $top, $right=null) ... $this->Error('Incorrect layout display mode: '.$ layout); ...

please help with the error: requires Page.Header to be non-null ... please help with the error: requires Page.Header to be non-null, > ROOT > NEWSGROUP > Asp.Net Forum ...
Using Menu.StaticHoverStyle requires Page.Header to be non-null ... please help with the error: requires Page.Header to be non-null ... Using Menu. DynamicHoverStyle requires Page.Header to be non-null (e.g. ...
ASP Menu, Transparent back color - ng.asp-net-forum ... Header to be non-null ... please help with the error: requires Page.Header to be non-null, > ROOT > NEWSGROUP > Asp.Net Forum ... asp menu, ...
Please help - this is so frustrating! Setfocus in a masterpage ... please help with the error: requires Page.Header to be non-null ... Please help me fix this I am about to pull my hair out. ... please help ...
UserControl inside ContentPlaceHolder - ng.asp-net-forum ... 2008-04-23, user control inside contentplaceholder in master page, 0 . ... please help with the error: requires Page.Header to be non-null . ...












using master and content pages to simulate html frames

treeview navigateurl with spaces

page title

use masterpage on more folders

javascript in content page based on master page.

tables and menus

xmlsitemapprovider does not exist

communication master <==> page

easy question

page title?

asp.net 2.0 menu interferes with scrolling div

master pages and properties

how to give styles to menucontrol?

'createresourcebasedliteralcontrol' is not a member of 'asp.homemasterpage_master'.

display not refreshing when css in theme is updated

"microsoft jscript runtime error: object expected" when redirecting from content page

masterpage updates

treeview question

menurootcategory.statichoverstyle.backcolor

sitemap datasource

master file does not exist

need some help with menu

how to use sitemap control?

problem with imageurl defined in a skin file

adding dropdowns programatically to content page in master page and retrieving selected value in code behind

masterpages, form-tags, etc....

sitemap and localization

problem with a content page's page_load subroutine

accessing master page properties from a web form

asp.net menu

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT