摘要: CREATE PROCEDURE 创建存储过程,存储过程是保存起来的可以接受和返回用户提供的参数的 Transact-SQL 语句的集合。 可以创建一个过程供永久使用,或在一个会话中临时使用(局部临时过程),或在所有会话中临时使用(全局临时过程)。 也可以创建在 Microsoft® SQL Server™ 启动时自动运行的存储过程。 语法 CREATE PROC [ EDURE ] proced... 阅读全文
posted @ 2008-06-06 21:07 chunchill 阅读(3792) 评论(0) 推荐(0) 编辑
摘要: 这些是摘自联机众书: @@IDENTITY 存储过程 返回最后插入的标识值。 语法 @@IDENTITY 返回类型 numeric 注释 在一条 INSERT、SELECT INTO 或大容量复制语句完成后,@@IDENTITY 中包含此语句产生的最后的标识值。若此语句没有影响任何有标识列的表,则 @@IDENTITY 返回 NULL。若插入了多个行,则会产生多个标识值,@@IDENTITY 返回... 阅读全文
posted @ 2008-06-06 20:43 chunchill 阅读(668) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(1457) 评论(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 阅读(1003) 评论(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 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 我们知道,Application变量是一个全局的变量,它和session变量的区别在于,Application变量对任何用户都是相同的,而session变量则根据不同用户而获取不同的相应值。 下面是转载的一篇巧用全局类的静态变量来代替Application的文章: ===================================================================... 阅读全文
posted @ 2008-05-29 18:31 chunchill 阅读(493) 评论(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 阅读(804) 评论(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 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 通过上一部分的学习,我们已知道:Cookie是ASP中的一个对象集合,它以加密的形式被保存在客户端特定文件夹内,用户可以修改、删除甚至伪造Cookie;而Session是一个服务器对象,它被保存在服务器,所以相对地,使用Session较为安全,但较耗费服务器资源。你可以随意设置Cookie的生存期,例如1年。但如果你让一个Session变量始终生存在服务器主机内,对你的服务器来说并不是一个好的选择... 阅读全文
posted @ 2008-05-03 21:14 chunchill 阅读(3458) 评论(3) 推荐(0) 编辑
摘要: .NET常用的数据绑定代码实例: public class norke { public norke() { // myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); } public stati... 阅读全文
posted @ 2008-05-03 20:38 chunchill 阅读(344) 评论(0) 推荐(0) 编辑
摘要: .NET常用的数据绑定代码实例: public class norke { public norke() { // myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); } public stati... 阅读全文
posted @ 2008-05-03 20:27 chunchill 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Net 2中5个数据源控件,GridView,DataList,Repeator ,DetailsView,FormView 其中前3个用于呈现多列数据,后面2个用于呈现单列数据,即常用的数据明细. GridView和DetailsView控件的布局固定,自定义数据显示的布局功能有限,一般适合布局简单的数据呈现 DataList,Repeator和FormView数据控件都有很强的自定义布局能力... 阅读全文
posted @ 2008-05-03 16:46 chunchill 阅读(732) 评论(0) 推荐(0) 编辑
摘要: NET Framework 开放分类: Microsoft、软件开发 .NET Framework 是支持生成和运行下一代应用程序和 XML Web services 的内部 Windows 组件。.NET Framework 旨在实现下列目标: ·提供一个一致的... 阅读全文
posted @ 2008-05-03 10:57 chunchill 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1.添加引用 2.aspx文件加入 3.aspx文件加入 %CurrentPageIndex% 页 共 %PageCount% 页 显示 %StartRecordIndex%-%EndRecordIndex% 条" InputBoxStyle="width:24px; height:14px;" ShowInputBox="Always" SubmitButtonText=" GO " Fi... 阅读全文
posted @ 2008-05-02 21:23 chunchill 阅读(227) 评论(0) 推荐(0) 编辑
摘要: It is very easy to use FCKeditor in your ASP.Net web pages. Just follow these steps. [按着下面的步骤你将会很容易的把FCKeditor运用到ASP.Net的页面中。] You must have downloaded and installed (copied it in your web site) the ... 阅读全文
posted @ 2008-05-02 21:01 chunchill 阅读(185) 评论(0) 推荐(0) 编辑