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



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...@xxxxxxxxxxxxxxxxxxxx> 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 -

.



Relevant Pages

  • Re: Grey logos in letterheads
    ... If you really need the rationalisation, it is/was this: ... from which both HTML and XML protocols sprang: ... header and leaving it up to the recipient device to figure it out. ...
    (microsoft.public.mac.office.word)
  • Re: Grey logos in letterheads
    ... small comment--actually, both of my points came about because people constantly post about both those problems on the general Word groups, not here. ... I was trying to write an explanation to defend the lost headers in HTML to someone over there when I realized there was no way I could rationalize it. ... user can edit it and it can have a running header on each page. ...
    (microsoft.public.mac.office.word)
  • Re: Diacritical marks in array dont translate
    ... >>> encoding you specified in your HTML. ... > header transmitted by a server. ... MUST or MAY allow the Content-Type header to be overridden by the `meta' ... There are used UAs out there which does not support Unicode, ...
    (comp.lang.javascript)
  • Re: Unable to Control Header in html mail
    ... The dialog is correct - you can't preview HTML. ... If I'm following correctly, the header and footers are behaving as expected, ... Teach Yourself Outlook 2003 in 24 Hours ... > page setup all the header and footer areas are blank. ...
    (microsoft.public.outlook.printing)
  • Re: CGI scripts and MSIE
    ... Last night I put a perl script into my cgi-bin directory and gave it ... I would guess that you haven't specified in the HTML what the contents ... Most likely the other browsers have defaulted to text/html, ... What you need to do is add a header to the HTML you send back saying ...
    (uk.comp.os.linux)