如何在Render方法中修改替换HtmlTextWriter中的内容
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);
}