文本框重设默认值 你的意思是要保存数据,下次启动记住上次关闭时的状态么? 是这样的话,有很多种方法1、最简单的,存为txt文件,下次启动时load进来赋值2、搞个类,存放变量,将类序列化,启动时反序列化......希望对你有点帮助 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我问的原因,主要是不想借助txt、mdb等等外部工具 google C# winforms 读写配置文件 <table style="width: 435px"> <tr> <td colspan="3"> <strong><span style="color: #993300" > 添加链接信息</span></strong></td> </tr> <tr> <td style="width: 144px; text-align: right"> <span style="font-size: 9pt">网址名称:</span></td> <td colspan="2"> <asp:TextBox ID="txtNmae" runat="server" Width="255px"></asp:TextBox></td> </tr> <tr> <td style="width: 144px; height: 21px; text-align: right"> <span style="font-size: 9pt">链接地址</span>:</td> <td colspan="2" style="height: 21px"> <asp:TextBox ID="txtUrl" runat="server" Width="255px"></asp:TextBox></td> </tr> <tr> <td colspan="3" style="height: 21px; text-align: center"> <asp:Button ID="btnOK" runat="server" Font-Size="9pt" OnClick="btnOK_Click" Text="添加" /> <asp:Button ID="btnCancle" runat="server" Font-Size="9pt" Text="取消" OnClick="btnCancle_Click" /></td> </tr> </table> <td style="width: 100px; height: 30px; text-align:center"> 评论 ID:</td <td style="width: 346px; height: 30px"> <asp:TextBox ID="txtGID" runat="server"></asp:TextBox></td> </tr> <tr> <td style="width: 100px; height: 30px; text-align: center"> 评论者:</td> <td style="width: 346px; height: 30px"> <asp:TextBox ID="txtGName" runat="server"></asp:TextBox></td> </tr> <tr> <td style="width: 100px; height: 30px; text-align: center"> 评论标题:</td> <td style="width: 346px; height: 30px"> <asp:TextBox ID="txtGType" runat="server"></asp:TextBox></td> </tr> <tr> <td style="width: 100px; height: 30px; text-align: center"> 评论日期:</td> <td style="width: 346px; height: 30px"> <asp:TextBox ID="txtGStore" runat="server"></asp:TextBox></td> </tr> 写配置文件也好,写ini文件也好,写txt文件也好,写数据库也好,你都要有个地方去记录你的设置,都要外部支持。 如何去掉字符串中的html标签 Fri Mar 04 00:00:00 +0800 2011这种时间用C#怎么转成普通的datetime. DataGridView多行循环添加问题,非连接数据库 C# C#入门以后 ???大家有这方面的经验或提议么??? 如何在datagrid中让满足要求的项目变颜色? 兄弟们,帮我个忙!我想要一份.net开发b/s的方案! 如何,取得一段时是的有效工作时间(除去星期天,及法定假日) 按钮问题,高手请进 那里有vs.net beta 2 英文版 下载? c# 正则匹配后替换,同一个词替换为不同的词 急求一个简单的学生成绩管理系统,
<tr>
<td colspan="3">
<strong><span style="color: #993300" >
添加链接信息</span></strong></td>
</tr>
<tr>
<td style="width: 144px; text-align: right">
<span style="font-size: 9pt">网址名称:</span></td>
<td colspan="2">
<asp:TextBox ID="txtNmae" runat="server" Width="255px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 144px; height: 21px; text-align: right">
<span style="font-size: 9pt">链接地址</span>:</td>
<td colspan="2" style="height: 21px">
<asp:TextBox ID="txtUrl" runat="server" Width="255px"></asp:TextBox></td>
</tr>
<tr>
<td colspan="3" style="height: 21px; text-align: center">
<asp:Button ID="btnOK" runat="server" Font-Size="9pt" OnClick="btnOK_Click" Text="添加" />
<asp:Button ID="btnCancle" runat="server" Font-Size="9pt" Text="取消" OnClick="btnCancle_Click" /></td>
</tr>
</table>
评论 ID:</td
<td style="width: 346px; height: 30px">
<asp:TextBox ID="txtGID" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; height: 30px; text-align: center">
评论者:</td>
<td style="width: 346px; height: 30px">
<asp:TextBox ID="txtGName" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; height: 30px; text-align: center">
评论标题:</td>
<td style="width: 346px; height: 30px">
<asp:TextBox ID="txtGType" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; height: 30px; text-align: center">
评论日期:</td>
<td style="width: 346px; height: 30px">
<asp:TextBox ID="txtGStore" runat="server"></asp:TextBox></td>
</tr>