J
James Thomas
Hello -
I am attempting to override the Page control so it outputs a simple
copyright message at the bottom of every page.
The problem I'm running into is that it puts said message below the
</html> tag, which is not compliant.
How do I force this message to appear just above the </body> tag while
keeping everything else the same?
Here's how I'm dealing with it so far:
namespace MyNamespace
{
public class CopyPage : System.Web.UI.Page
{
protected override void Render(HtmlTextWriter output)
{
base.Render(output);
output.AddAttribute("id", "copyright");
output.RenderBeginTag("span");
output.Write("Some Company - All rights reserved");
output.RenderEndTag();
}
}
}
Thanks,
James
I am attempting to override the Page control so it outputs a simple
copyright message at the bottom of every page.
The problem I'm running into is that it puts said message below the
</html> tag, which is not compliant.
How do I force this message to appear just above the </body> tag while
keeping everything else the same?
Here's how I'm dealing with it so far:
namespace MyNamespace
{
public class CopyPage : System.Web.UI.Page
{
protected override void Render(HtmlTextWriter output)
{
base.Render(output);
output.AddAttribute("id", "copyright");
output.RenderBeginTag("span");
output.Write("Some Company - All rights reserved");
output.RenderEndTag();
}
}
}
Thanks,
James