469,604 Members | 2,381 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,604 developers. It's quick & easy.

Using ATLAS with dynamically generated header

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.
Jun 6 '06 #1
1 938
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" <Jo**@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
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.

Jun 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Brad Baker | last post: by
3 posts views Thread by rodchar | last post: by
6 posts views Thread by _Who | last post: by
reply views Thread by guiromero | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.