2005年7月30日

摘要: SqlServer存储过程结构规范范 本系统生成的SqlServer存储过程代码遵循以下规范 A、表主键可以采用自动int类型,也可以用字符型作为主键char(10),用字符型数据作为表主键的优点在于方便数据库,字符型主键生成可以通过本站提供的存储过程产生[查看此存储过程];B、对数据添加、更新、删除操作存储过程中采用事务管理来保证操作的完整性,对从数据库中读取数据操作不采用事务... 阅读全文
posted @ 2005-07-30 19:37 .net技術 阅读(662) 评论(0) 推荐(0)

2005年7月28日

摘要: 阅读全文
posted @ 2005-07-28 20:47 .net技術 阅读(840) 评论(0) 推荐(0)

2005年7月19日

摘要: private void backup_Click(object sender, System.EventArgs e) { string filename=System.DateTime.Now.ToShortDateString()+".mdb"; //为下载文件设默认名; string fullpath=Server.MapPath("../data/jc... 阅读全文
posted @ 2005-07-19 17:04 .net技術 阅读(392) 评论(0) 推荐(0)

2005年7月18日

摘要: //C#public User PopulateUser(IDataRecord dr) {User user = new User();user.UserId = Convert.ToInt32(dr["UserId"]);//检查 NULL 的示例if (dr["UserName"] != DBNull.Value){user.UserName = Convert.ToString(dr["U... 阅读全文
posted @ 2005-07-18 21:24 .net技術 阅读(227) 评论(0) 推荐(0)
 
摘要: 加引用using System.IO;string dr=Server.MapPath(".\\Files"); if(!Directory.Exists(dr)) Directory.CreateDirectory(dr); string fname=Path.GetFileName(File1.PostedFile.FileName); string fullname=dr+"... 阅读全文
posted @ 2005-07-18 00:23 .net技術 阅读(273) 评论(0) 推荐(0)

2005年7月16日

摘要: datagrid-》属性生成器-》列-》添加按钮列-》删除-》文本(T)->在文本框里加上:删除 阅读全文
posted @ 2005-07-16 21:31 .net技術 阅读(198) 评论(0) 推荐(0)

2005年7月15日

摘要: 有的时候我们需要(1)在编辑的时候用下拉框选择,并且默认为数据库的内容(2)使用下拉框过滤数据(3)使用css统一定制DataGrid下面给出代码:数据结构:表dep:depid(标识主键),depname(学院名字)表stu:stuid(标识主键),stuname(学生名字),studepid(学院id=表dep.depid)前台: WebForm28 ... 阅读全文
posted @ 2005-07-15 21:36 .net技術 阅读(393) 评论(0) 推荐(0)

2005年7月14日

摘要: 台湾的好网站http://www.blueshop.com.tw/ (论坛答疑点滴)如何在用户控件内得到包含这个用户控件的页面中的控件的值http://www.cnblogs.com/lovecherry/archive/2005/04/11/135543.html (论坛答疑点滴)如何得知调用当前方法的方法名?http://www.cnblogs.com/lovecherry/archive/2... 阅读全文
posted @ 2005-07-14 14:23 .net技術 阅读(623) 评论(0) 推荐(0)