protected override void Render(HtmlTextWriter writer)
        {
            
            StringWriter sw 
= new StringWriter();
            HtmlTextWriter htmlw 
= new HtmlTextWriter(sw);
            
//把页面生成内容拿出来
            base.Render(htmlw);
            htmlw.Flush();
            htmlw.Close();
            
string pageContent = sw.ToString();
            
//对内容进行修改
            pageContent = KillTheBugAndShit(pageContent);

            Response.Write(pageContent);
            
            
//base.Render (writer);
        }
Posted on 2006-07-08 13:56  arts  阅读(199)  评论(0)    收藏  举报