System.Web.UI.LiteralControl hr = new LiteralControl(); hr = new LiteralControl("<hr>"); this.Form1.Controls.Add(hr); LiterrlControl("需要添加的页面代码")