Using ATLAS with dynamically generated header

Discussion in 'ASP .Net' started by =?Utf-8?B?Sm9obg==?=, Jun 6, 2006.

  1. We have a very large site which uses Page inheritence. All pages inherit
    from a few base classes, which in turn inherit from Page. The purpose of
    this is to centrally control header and footer content, as well as a custom
    permissions-system. All <html>, <head>, and <body> tags are generated in the
    parent class using writer.Write (in Render), then base.Render is called to
    generate the content of the subclass (each page).

    Unfortunately this design does not seem to be compatible with ATLAS, because
    ATLAS requires the <head runat=server> tag to be declared in the body of each
    page. How can we overcome this issue? Obviously, changing the structure of
    our site is not an option, since it is very large and would be extremely time
    consuming.

    Thanks.
     
    =?Utf-8?B?Sm9obg==?=, Jun 6, 2006
    #1
    1. Advertising

  2. instead of writing html in the render event, have the base page create the
    custom header and footer as actual controls in the oninit event.

    -- bruce (sqlwork.com)


    "John" <> wrote in message
    news:...
    > We have a very large site which uses Page inheritence. All pages inherit
    > from a few base classes, which in turn inherit from Page. The purpose of
    > this is to centrally control header and footer content, as well as a
    > custom
    > permissions-system. All <html>, <head>, and <body> tags are generated in
    > the
    > parent class using writer.Write (in Render), then base.Render is called to
    > generate the content of the subclass (each page).
    >
    > Unfortunately this design does not seem to be compatible with ATLAS,
    > because
    > ATLAS requires the <head runat=server> tag to be declared in the body of
    > each
    > page. How can we overcome this issue? Obviously, changing the structure
    > of
    > our site is not an option, since it is very large and would be extremely
    > time
    > consuming.
    >
    > Thanks.
     
    bruce barker \(sqlwork.com\), Jun 6, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dude
    Replies:
    0
    Views:
    366
  2. Newsgroup - Ann
    Replies:
    4
    Views:
    729
    lilburne
    Nov 2, 2003
  3. Replies:
    2
    Views:
    2,973
  4. mlt
    Replies:
    2
    Views:
    883
    Jean-Marc Bourguet
    Jan 31, 2009
  5. Paul Brannan
    Replies:
    4
    Views:
    120
    Paul Brannan
    Jul 19, 2004
Loading...

Share This Page