




























private void Button1_Click(object sender, System.EventArgs e)
{
XmlDocument xmlDoc=new XmlDocument();
xmlDoc.Load(Server.MapPath("Web.Config"));
XmlNode root = xmlDoc.DocumentElement;
root.InnerXml = root.InnerXml +"\n"+ this.TextBox1.Text+"\n";
xmlDoc.Save(Server.MapPath("Web.Config"));
}
注意匿名用户要对web.config有写入的权限.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。