使用asp.net动态添加html元素

HtmlGenericControl gen = new HtmlGenericControl("div");
        gen.InnerText = "HtmlGenericControl";
        this.repshow.Controls.Add(gen);

创建一个div元素并且在div中添加内容

原文地址:https://www.cnblogs.com/xieon1986/p/3443865.html