471,120 Members | 1,310 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,120 software developers and data experts.

base.Render(writer) casuse memory leakage

Hi all,
I have created a simple template class as follow, but i encountered memory
leakage on the base.Render(writer). Have all you of encountered the same
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( @"
<title>" + PageTitle + @"</title>
<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( @"
</html>" );
Jul 21 '05 #1
0 1602

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Tarren | last post: by
2 posts views Thread by Andrea Williams | last post: by
3 posts views Thread by Guoqi Zheng | last post: by
9 posts views Thread by Adam Right | last post: by
reply views Thread by Coldfire | last post: by
9 posts views Thread by anon856525 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.