修改的设置项目后台覆盖
文章来源:中山文学网 | 2021-10-29
using System;
using llections;
using ponentModel;
using ta;
using awing;
using b;
using ssionState;
using ;
using bControls;
using mlControls;
using l ;
namespace WebApplication1
{
/// summary
/// Summary description for WebForm1.
/// /summary
public class WebForm1 : ge
{
protected xtBox TextBox1;
protected opDownList DropDownList1;
protected tton Button1;
public WebForm1()
{
it += new entHandler(Page_Init);
}
private void Page_Load(object sender, entArgs e)
{
if(!PostBack)
{
//打开某文件(假设WEB。CONFIG在根目录中)
string filename=pPath(\"/\") + @\"nfig\";
XmlDocument xmldoc= new XmlDocument();
ad(filename);
XmlNodeList topM=ildNodes;
foreach(XmlElement element in topM)
{
if(Lower()==\"appsettings\")
{
XmlNodeList _node=ildNodes;
if ( _unt 0 )
{
ear();
foreach(XmlElement el in _node)
{
d(tributes[\"key\"].InnerXml);
}
}
}
26500 }
}
}
private void Page_Init(object sender, EventArgs e)
{
InitializeComponent();
}
#region Web Form Designer generated code
/// summary
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// /summary
private void InitializeComponent()
{
ick += new entHandler(tton1_Click);
ad += new entHandler(ge_Load);
}
#endregion
private void Button1_Click(object sender, entArgs e)
{
string filename=pPath(\"/\") + @\"nfig\";
XmlDocument xmldoc= new XmlDocument();
ad(filename);
XmlNodeList topM=ildNodes;
foreach(XmlElement element in topM)
{
if(Lower()==\"appsettings\")
{
XmlNodeList _node=ildNodes;
if ( _unt 0 )
{
foreach(XmlElement el in _node)
{
if(tributes[\"key\"].Lower()==Lower())
{
tributes[\"value\"].Value=xt;
}
}
}
}
}
ve(filename);
}
}
}查看本文来源
唐山白癜风医院贵阳治疗男科医院
沈阳治疗白癜风医院哪好
上一篇:修改的设置项目前台计划
上一篇:修改资源管理器打开后的默认路径牛