05 2011 档案

摘要://http://msdn.microsoft.com/zh-cn/library/system.security.cryptography.rngcryptoserviceprovider(VS.80).aspx /// <summary> /// 生成安全的随机数(高斯密钥)RollDice /// </summary> /// <param name="num">个数</param> /// <returns>随机数</returns> public static string RandNumbe 阅读全文
posted @ 2011-05-27 11:06 94cool 阅读(304) 评论(0) 推荐(0) 编辑
摘要:try{Processp=newProcess();p.StartInfo.FileName="cmd.exe";p.StartInfo.UseShellExecute=false;p.StartInfo.RedirectStandardInput=true;p.StartInfo.RedirectStandardOutput=true;p.StartInfo.RedirectStandardError=true;p.StartInfo.CreateNoWindow=true;p.Start();stringusername="test";stringp 阅读全文
posted @ 2011-05-26 15:46 94cool 阅读(256) 评论(0) 推荐(0) 编辑
摘要:举例:1,获得MEMO中的光标位置.Lops:=SendMessage(memol.Handle,EM_LINEFROMCHAR,Memol.SelStart,0);//光标所在的行号Cpos:=SendMessage(meno1.Handle,EM_LINEINDEX,Lpos,0);//光标所在的字符位置LineLength:=SendMessage(memol.handle,EM_LINELENGTH,Cpos,0);//这行的字符数.2,开关显示器.SendMessage(Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 0);//关闭显示器.SendMe 阅读全文
posted @ 2011-05-26 11:28 94cool 阅读(550) 评论(0) 推荐(0) 编辑
摘要:当 SET NOCOUNT 为 ON 时,不返回计数(表示受 Transact-SQL 语句影响的行数)。当 SET NOCOUNT 为 OFF 时,返回计数。如果存储过程中包含的一些语句并不返回许多实际的数据,则该设置由于大量减少了网络流量,因此可显著提高性能。 阅读全文
posted @ 2011-05-24 16:05 94cool 阅读(145) 评论(0) 推荐(0) 编辑
摘要:指定当 Transact-SQL 语句出现运行时错误时,SQL Server 是否自动回滚到当前事务。当 SET XACT_ABORT 为 ON 时,如果执行 Transact-SQL 语句产生运行时错误,则整个事务将终止并回滚。 当 SET XACT_ABORT 为 OFF 时,有时只回滚产生错误的 Transact-SQL 语句,而事务将继续进行处理。如果错误很严重,那么即使 SET XACT_ABORT 为 OFF,也可能回滚整个事务。编译错误(如语法错误)不受 SET XACT_ABORT 的影响。对于大多数 OLE DB 提供程序(包括 SQL Server),必须将隐式或显示事务中 阅读全文
posted @ 2011-05-24 16:04 94cool 阅读(307) 评论(0) 推荐(0) 编辑
摘要:这是一个故事: "工程師修了一條隧道,隧道的一端就是美麗的風景,很多人會開車通過隧道.雖然隧道內已經有燈了,但是設計者擔心隧道可能會停電,所以在隧道的入口立了牌子,提醒駕駛員進入隧道前開燈.可是由此却使得駕駛員由於看到美麗的風景而忘記關燈的情況的發生." 引来对ooa,ood,oop的理解; 分析师拿到了政府,民众,组织,社团等的需求,这里泛指所有来自客户的需求了;了解需求,分析需求,分析技术实现等,得出一个结论:要在这里修条隧道;于是分析师,系统分析师,架构设计师出现了,他们干的工作就分析出来一个方案,即项目需求吧,他们的身份就是OOA了。 OOA是Object-Orie 阅读全文
posted @ 2011-05-24 15:32 94cool 阅读(242) 评论(0) 推荐(0) 编辑
摘要:这里介绍一个jQuery日期选择器插件date-input,使用方法与Datepicker一样,文本框直接调用即可,date-input可自定义日期的显示格式,同时支持多种语言包,当然也有中文语言包,效果图如下:查看date-input插件官方在线演示使用说明需要使用jQuery库文件和date-input库文件同时需要使用控制日期显示效果的CSS文件必优推荐级别:★★★★使用实例一,包含文件部分<script type="text/javascript" src="jquery.js"></script> <script 阅读全文
posted @ 2011-05-20 15:02 94cool 阅读(3177) 评论(0) 推荐(0) 编辑
摘要:特殊格式:convert(nvarchar(7),getdate(),120)//yyyy-MMconvert(nvarchar,getdate(),23)//yyyy-MM-dd 阅读全文
posted @ 2011-05-20 14:33 94cool 阅读(141) 评论(0) 推荐(0) 编辑
摘要:\s\S(?=\s|\b)\s[B-Zb-z](?=\s|\b)//非A、a的单个字符 阅读全文
posted @ 2011-05-14 21:02 94cool 阅读(173) 评论(0) 推荐(0) 编辑
摘要:首先在VS2005----》网站----》添加引用----》com----->microsoft office web components privatevoidgetchart(DataTabledt, int rows){try{intcount=dt.Rows.Count;if (count < 3) { divchart.InnerHtml = "<span style='color:red'>数据少于3条,无法生成图表!</span>";return; }//存放月string[]MonNum=newstrin 阅读全文
posted @ 2011-05-11 14:56 94cool 阅读(279) 评论(0) 推荐(0) 编辑
摘要:设置如下时间刻度:ChartAxisGroupingEnum.chAxisGroupingManual;ChartAxisUnitTypeEnum.chAxisUnitMonth;需要在SetData后面加上上面属性,否则会出现参数无效问题:InsertChart.SeriesCollection.Add(0); InsertChart.SeriesCollection[0].DataLabelsCollection.Add(); InsertChart.SeriesCollection[0].DataLabelsCollection[0].HasValue = true; InsertCha 阅读全文
posted @ 2011-05-11 14:52 94cool 阅读(351) 评论(0) 推荐(0) 编辑
摘要:如:有用户控件header、affiche,在affiche中获取header的值(前提这些值必须public)在affiche.cs中加入多个属性值:Page p = this.Parent.Page; UserControl uc = p.FindControl("header1") as UserControl; Type pageType = uc.GetType();FieldInfo[] myFields = pageType.GetFields(BindingFlags.Public | BindingFlags.Instance);for (int i = 阅读全文
posted @ 2011-05-03 10:34 94cool 阅读(257) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示