05 2008 档案

摘要:C# 复制代码 // Put the next line into the Declarations section. private System.Data.DataSet dataSet; private void MakeDataTables() { // Run all of the functions. MakeParentTable(); MakeChildTable(); Mak... 阅读全文
posted @ 2008-05-30 22:22 chunchill 阅读(1471) 评论(0) 推荐(0)
摘要:A database table commonly has a column, or group of columns, that uniquely identifies each row in the table. This identifying column or group of columns is called the primary key. 一个数据表都有一个或者是若干个列,而每个... 阅读全文
posted @ 2008-05-30 21:23 chunchill 阅读(1028) 评论(2) 推荐(0)
摘要:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebPar... 阅读全文
posted @ 2008-05-29 18:37 chunchill 阅读(437) 评论(0) 推荐(0)
摘要:我们知道,Application变量是一个全局的变量,它和session变量的区别在于,Application变量对任何用户都是相同的,而session变量则根据不同用户而获取不同的相应值。 下面是转载的一篇巧用全局类的静态变量来代替Application的文章: ===================================================================... 阅读全文
posted @ 2008-05-29 18:31 chunchill 阅读(507) 评论(0) 推荐(0)
摘要:DataFormatString="{0:N0}%“ DataFormatString="${0:N2}" DataFormatString="{0:N0}个" DataFormatString="No.{0:N0}" DataFormatString="{0:yyyy-MM-dd hh:mm:ss}" ==========================以下是转载的原文=============... 阅读全文
posted @ 2008-05-27 19:41 chunchill 阅读(813) 评论(0) 推荐(0)
摘要:在GridView中导出数据到EXCEL 只要在页面中添加一个按钮Button1,给按钮加上以下代码即可解决。protected void Button1_Click(object sender, EventArgs e) { Response.Clear(); Response.Buffer = true; Response.Charset = ... 阅读全文
posted @ 2008-05-26 23:50 chunchill 阅读(363) 评论(0) 推荐(0)
摘要:通过上一部分的学习,我们已知道:Cookie是ASP中的一个对象集合,它以加密的形式被保存在客户端特定文件夹内,用户可以修改、删除甚至伪造Cookie;而Session是一个服务器对象,它被保存在服务器,所以相对地,使用Session较为安全,但较耗费服务器资源。你可以随意设置Cookie的生存期,例如1年。但如果你让一个Session变量始终生存在服务器主机内,对你的服务器来说并不是一个好的选择... 阅读全文
posted @ 2008-05-03 21:14 chunchill 阅读(3504) 评论(3) 推荐(0)
摘要:.NET常用的数据绑定代码实例: public class norke { public norke() { // myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); } public stati... 阅读全文
posted @ 2008-05-03 20:38 chunchill 阅读(354) 评论(0) 推荐(0)
摘要:初学.NET必须搞懂ADO.NET,而DATASET是数据操作当中必须掌握的一个环节:ADO.NET是.Net FrameWork SDK中用以操作数据库的类库的总称。而DataSet类则是ADO.NET中最核心的成员之一,也是各种开发基于.Net平台程序语言开发数据库应用程序最常接触的类。之所以DataSet类在ADO.NET中具有特殊的地位,是因为DataSet在ADO.NET实现从数据库抽取... 阅读全文
posted @ 2008-05-02 10:06 chunchill 阅读(1129) 评论(2) 推荐(0)