日期:2014-05-16  浏览次数:20993 次

读写INI文件
打开页面可读取INI文件里的相应数据,但修改数据后点确定不会写进INI文件。高手帮忙看看。

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="attconfig.aspx.cs" Inherits="_Default111a" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="CssV3/Web_left.css" rel="stylesheet" type="text/css" />
    <link href="style/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
body {
background-color: #c4d8ed;
}
.STYLE6 { color: #000000;
font-weight: bold;
}
.STYLE7 {color: #135294}
.STYLE8 {
color: #FF0000;
font-weight: bold;
}
-->
    </style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
    <form id="form1" runat="server">
      <div> 
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#284885">
                <tr>
                  <td width="20%" colspan="2" align="left" valign="middle" bgcolor="#E4EDF9"><span style="width: 186px"> </span><span class="td2"><span class="STYLE6"> </span></span> <br />
                    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="C4D8ED">
                      <tr>
                        <td height="28" bgcolor="#F1F3F5"><span class="STYLE7">&nbsp;[设置]&nbsp;</span></td>
                      </tr>
                    </table>
                  <br /><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="C4D8ED">
       &nb