- 博客(18)
- 收藏
- 关注
转载 asp.net中挺高性能的24种方法
以下是应用系统发布前,作为 .NET 开发人员需要检查的点。1.debug=「false」当创建 ASP.NET Web应用程序,默认设置为「true」。开发过程中,设置为「true」是非常有用多,但在应用程序发布部署时,需将其设置为「false」。<compilation defaultLanguage="C#" debug="false" targetFramewo...
2019-08-19 14:52:00
136
转载 input回车事件未实现但页面刷新
input文本框外有form标签,当form下只有一个input文本框时回车自动提交表单解决办法:1、去掉form。2、在form下加一个隐藏的input。 (<input id='hiddeninput' type="hidden" style="display:none" />)3、form 加onsubmit 事件,返回 false。 (<form method...
2018-11-27 17:14:00
116
转载 SQL Server 删除重复记录,只保留一条记录
原文地址:https://www.cnblogs.com/luodengxiong/p/4997471.html1、查询重复记录:SELECT * FROM dbo.Table TWHERE EXISTS (SELECT 字段1, 字段2, 字段3 FROM dbo.TableSign WHERE 字段1= T.字段1 AND 字段2= T.字段2AND 字段3...
2018-10-25 10:44:00
171
转载 C#读取txt文件时中文乱码
解决办法使用GB2312中文字符集StreamReader reader = new StreamReader(txtUrl, Encoding.GetEncoding("gb2312"));或使用默认编码格式StreamReader sR = new StreamReader(filePath, System.Text.Encoding.Default)转载于:ht...
2018-07-18 17:14:00
288
转载 jQuery确定删除提示框
if(confirm("是否确定删除!")){}else{}转载于:https://www.cnblogs.com/z-hj/p/9268228.html
2018-07-05 14:43:00
500
转载 Sql Server 增加字段、修改字段、修改类型、修改默认值
1、修改字段名: alter table 表名 rename column A to B2、修改字段类型: alter table 表名 alter column 字段名 type not null3、修改字段默认值 alter table 表名 add default (0) for 字段名 with values 如果字段有默认值,则需要先删除字段的约...
2018-07-05 13:46:00
73
转载 C# 生成彩色二维码
/// <summary> /// 生成彩色二维码 /// </summary> /// <param name="data">二维码内容</param> /// <param name="filename">生成的图片名称(如:123.jpg)<...
2016-11-11 17:48:00
664
转载 C#的集合类(二)Hashtable、SortedList、Dictionary
哈希表(Hashtable) Hashtable用于处理和表现类似key/value的键值对,其中key通常可用来快速查找,同时key是区分大小写;value用于存储对应于key的值。Hashtable中key/value键值对均为object类型,所以Hashtable可以支持任何类型的key/value键值对. 添加一个key/value键值对:Has...
2016-11-10 14:20:00
98
转载 下载文件-JavaScript
1 //下载文件 2 //data 文件链接(http://baidu.com/111.jpg) 3 //filename 文件名称(111.jpg) 4 var saveFile = function (data, filename) { 5 var save_link = document.createElementNS(...
2016-10-27 12:08:00
67
转载 ASP.NET(C#)图片加文字、图片水印
/* * Class:WaterImage * Use for add a water Image to the picture both words and image * 2007.07.23 create the file * * http://www.freeatom.com/ 欢迎您的来访 * * 使用说...
2016-10-26 20:42:00
152
转载 不允许保存更改,阻止保存要求重新创建表的更改
解决方案:【工具】--->【选项】--->【设计器】--->【表设计器和数据库设计器】--->去掉【阻止保存要求重新创建表的更改】的勾选转载于:https://www.cnblogs.com/z-hj/p/5989080.html...
2016-10-23 10:01:00
77
转载 The cast to value type 'System.Decimal' failed because the materialized value is null. Either the re...
_investmentRepository.Table.Where(t => t.CustomerId == customerId && t.InvestmentStatus == tempStatus).Sum(t =>t.Amount);查询结果存在NULL值,在尝试将它转换成System.Int32时出了错,解决方法如下_investmentR...
2016-10-18 13:09:00
479
转载 判断复选框是否选中
<input type="checkbox" checked="checked" id="clause"/>if ($("#clause").is(':checked'))转载于:https://www.cnblogs.com/z-hj/p/5970763.html
2016-10-17 18:20:00
64
转载 将Linq(EF)级联查询的结果转换为泛型集合类型
var result = (from a in result join b in _customerInvestmentRepository.Table on a.CustomerInvestmentId equals b.Id where b.InvestmentStatus == i...
2016-10-15 17:04:00
402
转载 jquery操作select
<select id="selector"></select>1、设置value为pxx的项选中 $("#selector").val("xxx");2、设置text为pxx的项选中 $("#selector").find("option[text='xxx']").attr("selected",true); 这里有一个中...
2016-10-07 15:54:00
120
转载 node.js回调函数 - 阻塞与非阻塞
1.阻塞调用(读取完文件再执行后面的操作)var fs = require("fs");var data = fs.readFileSync('/fs.txt');console.log(data.toString());console.log("程序执行结束!");输出结果:“文件内容”“程序执行结束!”2.非阻塞调用(读取文件和其他操作同步执行)...
2015-11-13 13:38:00
75
转载 javascript || &&
1、 var a =1>2||true; 代表如果左边为true则返回左边,否则返回右边。2、 var a=1>2&&true; 如果左边为true则返回右边,否则返回左边。转载于:https://www.cnblogs.com/z-hj/p/4787547.html...
2015-09-06 22:26:00
78
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人