摘要: [1]样例部分 DataTable dt = new DataTable(); DataColumn dc = new DataColumn(); dc.ColumnName = "aa"; dc.DefaultValue = ""; dc.DataType = Type.GetType("System.String"); dt.Columns.Add(dc); dt.AcceptCh... 阅读全文
posted @ 2009-06-15 17:38 适渊 阅读(397) 评论(0) 推荐(0) 编辑
摘要: DataRow UpDataRow; UpDataRow = saveTable.NewRow(); UpDataRow["FILE_MASTER_TABLE"] = "FCO_BASE"; UpDataRow["FILE_MASTER_ID"] = id; UpDataRow["FILE_NAME"] = path; UpDataRow["FILE_URL"] = UpFilePath; sav... 阅读全文
posted @ 2009-06-15 17:36 适渊 阅读(312) 评论(0) 推荐(0) 编辑
摘要: //JAVASCRIPT实现===============================================================////代码描述:打开一个新的没有状态栏、工具栏、菜单栏、定位栏,//不能改变大小,且位置居中的新窗口////传入参数:pageURL-传递链接//innerWidth-传递需要打开新窗口的宽度//innerHeight-传递需要打开新窗口的高度... 阅读全文
posted @ 2009-06-15 17:34 适渊 阅读(162) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 将指定字符串按指定长度进行剪切, /// </summary> /// <param name= "oldStr "> 需要截断的字符串 </param> /// <param name= "maxLength "> 字符串的最大长度 </param> /// <param ... 阅读全文
posted @ 2009-06-15 17:33 适渊 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1、DateTime数字型 System.DateTimecurrentTime=newSystem.DateTime(); currentTime = DateTime.Now;1.1取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2取当前年 int年=currentTime.Year; 1.3取当前月 int月=currentTime.Month; ... 阅读全文
posted @ 2009-06-15 17:32 适渊 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Y=年,m=月,d=等于日 public int CaculateWeekDay(int y, int m, int d) { if (m < 3) { m += 12; if (y % 400 == 0 || y % 100 != 0 && y % 4 == 0) { d--; } } else { d += 1; } int week = (d + 2 * m + 3 *... 阅读全文
posted @ 2009-06-15 17:31 适渊 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 此种情况一般为上传的文件内容太大,并且在Web.config并且未进行配置所造成的.解决方法为在Web.config配置文件中的<system.web>....</system.web>中加上这句话<httpRuntime maxRequestLength="20240" requestLengthDiskThreshold="100"/>maxRequestL... 阅读全文
posted @ 2009-06-15 17:29 适渊 阅读(485) 评论(0) 推荐(0) 编辑
摘要: SQLserver中用convert函数转换日期格式2008-01-15 15:51SQLserver中用convert函数转换日期格式SQL Server中文版的默认的日期字段datetime格式是yyyy-mm-dd Thh:mm:ss.mmm 例如: select getdate() 2004-09-12 11:06:08.177 整理了一下SQL Server里面可能经常会用到的日期格式转... 阅读全文
posted @ 2009-06-15 17:27 适渊 阅读(220) 评论(0) 推荐(0) 编辑
摘要: select Convert(varchar(2),datepart(hour,[time])), Convert(varchar(2),datepart(minute,[time])), Convert(varchar(2),datepart(second,[time])) from 表 select Convert(varchar(2),datepart(hour,[time]))+'... 阅读全文
posted @ 2009-06-15 17:26 适渊 阅读(12778) 评论(0) 推荐(0) 编辑
摘要: 首先判断当前的VS是否已经选择了源代码管理软件菜单栏中点击、工具-选项-源代码管理-插件选择、会出现以下画面,然后选择你需要的源代码管理软件后,在菜单栏中的文件选项下就会出现源代码管理了。如果还是不行可以尝试在‘运行’中执行以下命令regsvr32 "C:\Program Files\Microsoft Visual SourceSafe\ssscc.dll" regsvr... 阅读全文
posted @ 2009-06-15 16:39 适渊 阅读(773) 评论(0) 推荐(0) 编辑