做最好的自己~~

Be My Personal Best!

导航

上一页 1 ··· 7 8 9 10 11 12 13 下一页

2008年6月3日 #

利用存储过程生成随机数,并用其它存储过程调用此过程

摘要: --产生随机卡号的存储过程(被其它存储过程调用) if exists(select * from sysobjects where name='proc_randCardID') drop procedure proc_randCardID go create procedure proc_randCardID @randCardID varchar(20) output as declar... 阅读全文

posted @ 2008-06-03 09:34 阿万 阅读(846) 评论(1) 推荐(0) 编辑

2008年6月2日 #

自定义分页栏

摘要: 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.WebParts... 阅读全文

posted @ 2008-06-02 21:17 阿万 阅读(450) 评论(0) 推荐(0) 编辑

2008年5月31日 #

我的简易 数据存取器 的封装

摘要: #region 数据存取器 /// /// 保存数据 /// public static string theYear; public string SetYear { set { theYear = value; } get { ... 阅读全文

posted @ 2008-05-31 21:18 阿万 阅读(431) 评论(3) 推荐(0) 编辑

JavaScript 常用语句总结

摘要: 最近做了一个工资管理系统,大部分采用asp.net 2.0提供的控件发现虽然方便,但还是有好多地方是一定要采用JavaScript才能实现功能的。。 对于这个项目常用到的一些脚本我做了如下总结:1。。//执行客户端脚本,makeSure()是客户段的脚本函数: ClientScript.RegisterStartupScript(this.GetType(), "", "<script>... 阅读全文

posted @ 2008-05-31 21:13 阿万 阅读(1180) 评论(2) 推荐(0) 编辑

dataGridView中的数据操作

摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namesp... 阅读全文

posted @ 2008-05-31 04:14 阿万 阅读(1395) 评论(2) 推荐(0) 编辑

2008年5月29日 #

listView绑定数据

摘要: private void button1_Click(object sender, EventArgs e) { listView1.Items.Clear(); listView1.Columns.Clear(); SqlConnection con = new SqlConnection(... 阅读全文

posted @ 2008-05-29 13:55 阿万 阅读(4920) 评论(5) 推荐(0) 编辑

dataGridView 控件的简单绑定

摘要: private void button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection("server=.;database=pubs;user id=sa;password=123"); con.Open(); ... 阅读全文

posted @ 2008-05-29 13:38 阿万 阅读(459) 评论(0) 推荐(0) 编辑

2008年5月28日 #

SQL常用语句收集

摘要: 1 添加外键: alter table 表名1 add constraint 外键名 foreign key (外键字段) references 表名2(外键字段) 2 添加索引(此键一定是汪加了not null后): create unique index 约束名 on 表名(约束字段 desc) 3 添加not null约束 : alter table 表名 alter column 约束列... 阅读全文

posted @ 2008-05-28 12:43 阿万 阅读(581) 评论(0) 推荐(0) 编辑

2008年5月27日 #

Button1.Attributes.Add()方法小结

摘要: //首先要在PageLoad()事件中注册属性 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Button1.Attributes.Add("onclick", "return checkSame()");//为Butto... 阅读全文

posted @ 2008-05-27 14:45 阿万 阅读(6340) 评论(4) 推荐(1) 编辑

2008年5月24日 #

文件写入写出的封装

摘要: #region 文件写入写出的封装 /// /// 写入文件方法 /// /// 要被写入的文件的路径 /// 要被写入内容 /// public bool StreamWrite(string filePath,string fileConten,HttpServerUtility Server) { ... 阅读全文

posted @ 2008-05-24 22:46 阿万 阅读(450) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 下一页