| Author: tushqi 05 Jul 2008 | Member Level: Silver | Rating: Points: 6 |
using System; using System.Web.UI; public class PageBase : System.Web.UI.Page { private string _pageTitle; public string PageTitle { get { return _pageTitle; } set { _pageTitle = value; } }
protected override void Render(HtmlTextWriter writer) { // First we will build up the html document,
// the head section and the body section.
writer.Write( @" <html> <head> <title>" + PageTitle + @"</title> </head> <body>" );
// Then we allow the base class to render the
// controls contained in the ASPX file.
base.Render( writer );
// Finally we render the final tags to close
// the document.
Writer.Write( @" </body> </html>" ); } }
|