Textbox1.text 是用户可以输入html页面名称,以便通过文字附加到面板。(加载html页面到面板)。
string val = TextBox1.Text;
string location = Server.MapPath(".");
string path = location + "\\HTML\\" + val + ".html"; // HTML IS FOLDER NAME IN MY PROJECT
string readText = System.IO.File.ReadAllText(path);
Panel1.Controls.Clear();
Literal lit = new Literal();
lit.Text = readText;
Panel1.Controls.Add(lit);
实际上,在 Html 页面中,很少有输入格式的控件(<input style="position: relative;" id="T0" onmouseup="mUp(this.id)" class="ui-draggable" onmousedown="mDown(this.id)" value="" type="text">
)我必须找到这些 id 和文本以保存在数据库中。现在如何在面板中找到控件?