上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页
摘要: public static int getBrowser(){string BrowserInfo = HttpContext.Current.Request.UserAgent;if (BrowserInfo.Contains("MSIE 7.0")){//IE7return 1;}else if... 阅读全文
posted @ 2013-07-02 15:44 顿金 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1、HOLDLOCK其他事务可以读取,但不能更新删除BEGIN TRANSELECT * FROM ceb_Area WITH(ROWLOCK,HOLDLOCK) where ID=1--行锁SELECT * FROM ceb_Area WITH(TABLOCK,HOLDLOCK) where ID... 阅读全文
posted @ 2013-06-30 15:58 顿金 阅读(169) 评论(0) 推荐(0) 编辑
摘要: BEGIN TRY BEGIN TRAN; /***需调试的存储过程开始**/ declare @Stat tinyint; set @Stat=1; select @Stat=10000; /***需调试的存储过程结束**/ ROL... 阅读全文
posted @ 2013-06-29 19:54 顿金 阅读(135) 评论(0) 推荐(0) 编辑
摘要: JS方法 function addSelCont() { var provinceObj = $('#'); var cityObj = $('#'); var provinceId =provinceObj.val(); var cityId = cityObj.val(); var provin... 阅读全文
posted @ 2013-06-19 20:22 顿金 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1. DataTable转IListpublicclassDataTableToListwhereT :new(){//////利用反射将Datatable转换成List模型/////////publicstaticList ConvertToList(DataTabledt){List list ... 阅读全文
posted @ 2013-05-18 13:51 顿金 阅读(1083) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web.Script.Serialization;using System.Reflection;using ... 阅读全文
posted @ 2013-05-18 13:48 顿金 阅读(333) 评论(0) 推荐(0) 编辑
摘要: public partial class frmRename: Form{List ldir;string lastPath;public frmRename(){InitializeComponent();}private void button1_Click(object sender, Eve... 阅读全文
posted @ 2013-05-18 13:45 顿金 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 双重锁机制namespace Singleton { public class Singleton { //定义一个私有的静态全局变量来保存该类的唯一实例 private static Singleton singleton; //定义一个只读静态对象 ... 阅读全文
posted @ 2013-05-11 16:09 顿金 阅读(175) 评论(0) 推荐(0) 编辑
摘要: select * from a,b where a.id=b.id(+);--该写法的执行效率高select * from a left join b on a.id=b.id; 阅读全文
posted @ 2013-05-11 15:50 顿金 阅读(2247) 评论(0) 推荐(0) 编辑
摘要: 设计模式分为三种类型,共23类。创建型模式:单例模式、抽象工厂模式、建造者模式、工厂模式、原型模式。结构型模式:适配器模式、桥接模式、装饰模式、组合模式、外观模式、享元模式、代理模式。行为型模式:模版方法模式、命令模式、迭代器模式、观察者模式、中介者模式、备忘录模式、解释器模式、状态模式、策略模式、... 阅读全文
posted @ 2013-05-11 15:45 顿金 阅读(130) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页