PC Review


Reply
Thread Tools Rate Thread

asp:menu requires Page.Header to be non-null

 
 
michael
Guest
Posts: n/a
 
      14th Jan 2008
I want to include a simple menu in a usercontrol on a page. The page
inherits a BaseClass that overrides Render method, including header
control. Header is dynamically generated.

......
writer.RenderBeginTag(HtmlTextWriterTag.Head)
.......

If I want to use DynamicHoverStyle for the menu I am getting the error
"Using Menu.DynamicHoverStyle requires Page.Header to be non-null".

Any ideas how to fix this problem?
 
Reply With Quote
 
 
 
 
Peter Bromberg [C# MVP]
Guest
Posts: n/a
 
      14th Jan 2008
Have you tried having a Page header with say, one element that has no
content? Would that not solve the requirement?
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com


"michael" wrote:

> I want to include a simple menu in a usercontrol on a page. The page
> inherits a BaseClass that overrides Render method, including header
> control. Header is dynamically generated.
>
> ......
> writer.RenderBeginTag(HtmlTextWriterTag.Head)
> .......
>
> If I want to use DynamicHoverStyle for the menu I am getting the error
> "Using Menu.DynamicHoverStyle requires Page.Header to be non-null".
>
> Any ideas how to fix this problem?
>

 
Reply With Quote
 
michael
Guest
Posts: n/a
 
      14th Jan 2008
Hi Peter,

Thanks for your answer.
I am not sure I understand what you're saying.
I have tried though something like:

writer.AddAttribute("id", "myheader")
writer.RenderBeginTag(HtmlTextWriterTag.Head)

with no success.

The generated code would be:

<html>
<head id="myheader">
<title>
................



On Jan 14, 3:31*pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.NoSpamMaam.com> wrote:
> Have you tried having a Page header with say, one element that has no
> content? Would that not solve the requirement?
> -- Peter
> Site:http://www.eggheadcafe.com
> UnBlog:http://petesbloggerama.blogspot.com
> MetaFinder:http://www.blogmetafinder.com
>
>
>
> "michael" wrote:
> > I want to include a simple menu in a usercontrol on a page. The page
> > inherits a BaseClass that overrides Render method, including header
> > control. Header is dynamically generated.

>
> > ......
> > * * * * writer.RenderBeginTag(HtmlTextWriterTag.Head)
> > .......

>
> > If I want to use DynamicHoverStyle for the menu I am getting the error
> > "Using Menu.DynamicHoverStyle requires Page.Header to be non-null".

>
> > Any ideas how to fix this problem?- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable shortcut menu for page header only wallymeister Microsoft Access Form Coding 3 7th Apr 2010 08:10 PM
Using themed css files requires a header control on the page samuelberthelot@googlemail.com Microsoft ASP .NET 5 27th Feb 2006 05:51 PM
Group Header On Null and not Null =?Utf-8?B?S0Fub2U=?= Microsoft Access Reports 2 15th Aug 2005 02:30 PM
Web Page Header and Menu poifull Microsoft ASP .NET 4 15th May 2005 04:52 AM
How? Add a row will a null value in a column that requires a keyrefrence? Benny Raymond Microsoft VB .NET 0 20th Oct 2004 07:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 AM.