求教HtmlTextWriter和RenderControl的问题
的有关信息介绍如下:HtmlTextWriter和RenderControl的什么问题呢示例:将div控件的html输出到页面上。div1.InnerText="你好!";StringWritersw=newStringWriter();HtmlTextWriterhtw=newHtmlTextWriter(sw);div1.RenderControl(htw);Response.Write(Server.HtmlEncode(sw.ToString()));htw.Close();sw.Close();