摘要: 使用dt.Rows[0]["name", DataRowVersion.Original]可以获取 阅读全文
posted @ 2019-03-28 17:50 何以平天下 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 使用Delete()之后行消失了 先在for循环外加上dt.AcceptChanges(); 删除时在dt.AcceptChanges(); 阅读全文
posted @ 2019-03-28 17:48 何以平天下 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 先加一个扩展函数: Array.prototype.contains = function (obj) { var index = this.length; while (index--) { if (this[index] obj) { return true; } } return false; 阅读全文
posted @ 2019-03-28 17:45 何以平天下 阅读(18091) 评论(2) 推荐(1) 编辑
摘要: 在websrvice发布文件的webconfig中加入 <httpRuntime maxRequestLength="102400" /> <webServices> <protocols> <add name="HttpPost" /> <add name="HttpGet" /> </proto 阅读全文
posted @ 2019-03-12 17:47 何以平天下 阅读(608) 评论(0) 推荐(0) 编辑
摘要: WebService中发布之后出现这个错误, 解决方法: web.config文件中的 <system.web> 节点下加入:<webServices> <protocols> <add name= "HttpPost"/> <add name= "HttpGet"/> </protocols></ 阅读全文
posted @ 2019-03-07 16:54 何以平天下 阅读(833) 评论(0) 推荐(0) 编辑
摘要: 在system.webServer节点下加上(.Net接口) <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Methods" value="OPTIONS,POST,GET" /> <add name="Access-C 阅读全文
posted @ 2019-01-18 17:26 何以平天下 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 先添加QRCoder NuGet程序包(生成二维码要用到) // 生成二维码的内容 string strCode = “123456”; QRCodeGenerator qrGenerator = new QRCoder.QRCodeGenerator(); QRCodeData qrCodeDat 阅读全文
posted @ 2019-01-09 16:51 何以平天下 阅读(169) 评论(0) 推荐(0) 编辑
摘要: MemoryStream ms = new MemoryStream(); //要先把二进制流进行编码,再传输,解决乱码问题 Convert.ToBase64String(ms.ToArray()); context.Response.Write(Convert.ToBase64String(ms. 阅读全文
posted @ 2019-01-09 16:45 何以平天下 阅读(474) 评论(0) 推荐(0) 编辑
摘要: //阻止冒泡上层clickevent.stopPropagation(); 阅读全文
posted @ 2019-01-09 15:42 何以平天下 阅读(832) 评论(0) 推荐(0) 编辑
摘要: create table #t(keyId int identity,actionDate datetime)insert into #t(actionDate) select distinct CreateDate from CRM_ScoreTransaction WHERE MemberID= 阅读全文
posted @ 2019-01-04 11:41 何以平天下 阅读(1418) 评论(0) 推荐(0) 编辑