小寒的blog
Programming is a darned hard thing—but I am going to like it.

    protected override void Render(HtmlTextWriter writer)
    {
        StringWriter stringWriter=new StringWriter();
        HtmlTextWriter oldwriter=new HtmlTextWriter(stringWriter);
        base.Render(oldwriter);

        string oldContent =stringWriter.ToString();

        string newContent = oldContent.Replace("aaaa/", "");

        writer.Write(newContent);
    }

posted on 2007-12-26 11:22  xhan  阅读(846)  评论(0编辑  收藏  举报