04 2017 档案

摘要:DataTable,DataRow,DataClomun三种对象都是引用类型。 C#中值的传递方式分为值传递与引用传递。 1.复制DataTable对象 //以下做法是错误的,dt1和dt2引用的是同一个对象DataTable dt1 = new DataTable();DataTable dt2 阅读全文
posted @ 2017-04-21 17:25 (john_zhang) 阅读(579) 评论(0) 推荐(0) 编辑
摘要:1、 使用SqlDataAdapter /// <summary> /// 实现数据库事务,大批量新增数据 /// </summary> /// <param name="dt">数据源</param> public static int ExecuteSqlTran(DataTable dt) { 阅读全文
posted @ 2017-04-21 16:23 (john_zhang) 阅读(1197) 评论(1) 推荐(0) 编辑
摘要:ALTER TABLE 表名 ALTER COLUMN 列名 新的数据类型[(长度)] NULL或NOT NULL 例:ALTER TABLE 教师 ALTER COLUMN 办公室 CHAR(20) NULL 阅读全文
posted @ 2017-04-21 16:03 (john_zhang) 阅读(50029) 评论(0) 推荐(1) 编辑
摘要:'$.browser.msie' 为空或不是对象,这个是jQuery错误 出现这个错误,是因为升级了jQuery版本,从1.9以前升级到1.9以后,因为$.browser.msie在1.9以后的jQuery中不存在了,所以报错。 jQuery 1.9 移除了 $.browser 的替代方法 $.br 阅读全文
posted @ 2017-04-17 14:00 (john_zhang) 阅读(1370) 评论(0) 推荐(0) 编辑
摘要:<input type="file" name="xxxxxxx"/>必须有“name”属性,否则在后台代码中用Request.Files是取不到值的 后台读取文件代码: HttpFileCollection httpFileCollection = HttpContext.Current.Requ 阅读全文
posted @ 2017-04-14 16:10 (john_zhang) 阅读(4376) 评论(0) 推荐(0) 编辑
摘要://把本地文件信息读入数据流中 FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); StreamReader reader = new StreamReader( 阅读全文
posted @ 2017-04-14 15:25 (john_zhang) 阅读(1255) 评论(0) 推荐(0) 编辑
摘要:导出文件: string filePath = Server.UrlDecode(filePath); if (File.Exists(filePath)) { FileInfo fi = new FileInfo(filePath); Response.Clear(); Response.Clea 阅读全文
posted @ 2017-04-14 15:22 (john_zhang) 阅读(362) 评论(0) 推荐(0) 编辑
摘要:转载自http://www.cnblogs.com/jilodream/p/4219840.html (一)HashTable 和Dic 数据结构 Hashtable和Dictionary从数据结构上来说都属于Hashtable(哈希表),都是对关键字(键值)进行散列操作,将关键字散列到Hashta 阅读全文
posted @ 2017-04-13 17:13 (john_zhang) 阅读(1314) 评论(0) 推荐(0) 编辑
摘要:1. 基本术语 AJAX(Asynchronous JavaScript And XML,异步JavaScript和XML):AJAX是一种用于创建快速动态网页的技术,通过在后台与服务器进行少量数据交换,AJAX可以使网页实现异步更新。这意味着可以在不重新加载整个网页的情况下,对网页的某部分进行更新 阅读全文
posted @ 2017-04-12 13:40 (john_zhang) 阅读(642) 评论(0) 推荐(0) 编辑
摘要:无法激活服务,因为它需要 ASP.NET 兼容性。没有未此应用程序启用 ASP.NET 兼容性。请在 web.config 中启用 ASP.NET 兼容性,或将 AspNetCompatibilityRequirementsAttribute.AspNetCompatibilityRequireme 阅读全文
posted @ 2017-04-10 10:05 (john_zhang) 阅读(598) 评论(0) 推荐(0) 编辑
摘要:找不到类型“WCFService.Service1”,它在 ServiceHost 指令中提供为 Service 特性值,或在配置元素 system.serviceModel/serviceHostingEnvironment/serviceActivations 中提供。 配置文件也都没有任何的问 阅读全文
posted @ 2017-04-10 10:01 (john_zhang) 阅读(2569) 评论(0) 推荐(0) 编辑
摘要:input 框提示信息 阅读全文
posted @ 2017-04-01 15:36 (john_zhang) 阅读(2588) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示