随笔分类 -  代码大全

收集常用代码,代码片段
摘要:在程序运行入口调试 阅读全文
posted @ 2019-05-05 09:04 skydau 阅读(244) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class _Default : System.Web.UI.Page{ private CustomerSOList bgCustomerSOListEntity { get; set; } private CustomerSOList dbCustomerSOListEntity { g... 阅读全文
posted @ 2013-07-06 00:28 skydau 阅读(222) 评论(0) 推荐(0)
摘要:using System;using System.Timers;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { var time1 = "2010-5-26 8:10:00"; var time2 = "2013-4-11 15:49:00"; var t1 = Convert.ToDateTime(time1); var t2 = Convert.To... 阅读全文
posted @ 2013-04-11 16:09 skydau 阅读(208) 评论(0) 推荐(0)
摘要:TFS命令tf:undo - 强制签入别人签出的文件 阅读全文
posted @ 2012-10-09 13:08 skydau 阅读(158) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/tuyile006/archive/2006/07/13/449884.aspx 阅读全文
posted @ 2012-09-01 14:46 skydau 阅读(176) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/lyj/archive/2008/03/25/1119671.html 阅读全文
posted @ 2012-08-31 11:39 skydau 阅读(156) 评论(0) 推荐(0)
摘要:DECLARE@ItemsXMLSET@Items='<bookstore><bookcategory="COOKING"><titlelang="en">EverydayItalian2</title><author>GiadaDeLaurentiis</author><year>2005</year><price>30.00</price></book><bookcategory="CHILDRE 阅读全文
posted @ 2012-08-18 22:20 skydau 阅读(155) 评论(0) 推荐(0)
摘要:DECLARE@ItemsXMLSET@Items='<bookstore><bookcategory="COOKING"><titlelang="en">EverydayItalian2</title><author>GiadaDeLaurentiis</author><year>2005</year><price>30.00</price></book><bookcategory="CHILDRE 阅读全文
posted @ 2012-08-18 21:57 skydau 阅读(161) 评论(0) 推荐(0)
摘要:<urlMappings enabled="true"> <!--<add url="~/products/g_{0}/category.htm" mappedUrl="~/products/{0}/group.htm"/>--> </urlMappings><value>繁體中文</value> 阅读全文
posted @ 2011-11-05 18:05 skydau 阅读(164) 评论(0) 推荐(0)
摘要:SETROWCOUNT0select*into#rrrfrom[OA_test].[dbo].[Company_KLFolder]----新建临时表#rrrdeclare@KLFGUIDuniqueidentifierdeclare@CGUIDuniqueidentifierdeclare@countintdeclare@SequenceintWHILEEXISTS(select[KLFGUID]from#rrr)---遍历临时表beginSETROWCOUNT1---------设置影响行数为1select@KLFGUID=cast([KLFGUID]asvarchar(max)),@CGU 阅读全文
posted @ 2011-07-16 10:49 skydau 阅读(2910) 评论(0) 推荐(0)
摘要:this.comboBox1.SelectedItem=(frompinthis.comboBox1.Itemswhere(pasPerson).Age==20selectp).First(); 阅读全文
posted @ 2011-05-11 10:41 skydau 阅读(443) 评论(0) 推荐(0)
摘要:本文来自http://blog.csdn.net/tangzhongxin/archive/2009/10/03/4630699.aspx 阅读全文
posted @ 2011-04-20 13:22 skydau 阅读(268) 评论(1) 推荐(0)
摘要:Asp.Net 性能 ViewState 压缩的2种方法usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.IO;usingSystem.IO.Compression;usingSystem.Web.UI;///<summary>///SummarydescriptionforPageBase///</summary>publicclassPageBase:System.Web.UI.Page{//压缩publicstaticbyte[]Comp 阅读全文
posted @ 2011-04-06 18:08 skydau 阅读(226) 评论(0) 推荐(0)
摘要:devExpress 7.2.5aspxdataview 阅读全文
posted @ 2011-04-02 19:33 skydau 阅读(275) 评论(0) 推荐(0)
摘要:Web.config中section的type属性完整格式 <!--type属性的完整格式为:配置节处理器类名,程序集名称,Version=程序集版本号,Culture=区域信息,PublicKeyToken=公钥--> <sectionname="log4net"type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/> Web.config配置文件 阅读全文
posted @ 2011-03-17 08:46 skydau 阅读(160) 评论(0) 推荐(0)
摘要:http://home.cnblogs.com/group/topic/32912.html 阅读全文
posted @ 2011-03-16 16:38 skydau 阅读(272) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/avisnet/archive/2006/09/16/506318.html 阅读全文
posted @ 2011-03-16 15:21 skydau 阅读(171) 评论(0) 推荐(0)
摘要:http://developer.51cto.com/art/200907/140544.htm 阅读全文
posted @ 2011-03-16 15:17 skydau 阅读(148) 评论(0) 推荐(0)