![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
Code
1 ReadWriteConfig Config = new ReadWriteConfig();
2 protected void Button2_Click(object sender, EventArgs e)
3 {
4 Config.ConfigType = (int)ConfigFileType.WebConfig;
5 Config.modifyElement("TP_time", config_time.Text.Trim());
6 Config.modifyElement("TP_upfile", TP_upfile.Text.Trim());
7 Config.modifyElement("TP_upfile_w_h", TP_upfile_w_h.Text.Trim());
8 Config.modifyElement("TP_password", admin_password.Text.Trim());
9 Config.modifyElement("TP_Redirect", TP_Redirect.Text.Trim());
10
11 if (CheckBox_IP_Y.Checked)
12 {
13 Config.modifyElement("TP_IP_Y", "true");
14 }
15 else { Config.modifyElement("TP_IP_Y", "false"); }
16 MessageBox.ResponseScript(this, "TabbedPanels1.showPanel(3);alert('配置文件设置成功!');");
17 }
18
建
posted @
2009-03-16 08:30
zxlin25
阅读(
191)
评论()
编辑
收藏
举报