05 2011 档案
摘要:function(str)//True 没有全角,False有全角{ for (var i = 0; i < str.length; i++) { strCode = str.charCodeAt(i); if ((strCode > 65248) || (strCode == 12288)) { return false; } } return true;}
阅读全文
摘要:usingSystem; usingSystem.Collections.Generic; classDictionaryDemo { staticvoidMain(string[]args) { DictionaryDemo001(); Console.ReadLine(); DictionaryDemo002(); Console.ReadLine(); DictionaryDemo003(); Console.ReadLine(); } ///<summary> ///一般用法 ///</summary> staticvoidDictionaryDemo001()
阅读全文
摘要:ASP.NET(C#)图片加文字、图片水印一、图片上加文字://using System.Drawing; //using System.IO; //using System.Drawing.Imaging; private void AddTextToImg(string fileName,string text) { if(!File.Exists(MapPath(fileName))) { throw new FileNotFoundException("The file don't exist!"); } if( text == string.Empty )
阅读全文
摘要:ASP.NET(C#)图片加文字、图片水印 一、图片上加文字: //usingSystem.Drawing;//usingSystem.IO;//usingSystem.Drawing.Imaging;privatevoidAddTextToImg(stringfileName,stringtext){if(!File.Exists(MapPath(fileName))){thrownewFileNotFoundException("Thefiledon'texist!");}if(text==string.Empty){return;}//还需要判断文件类型是否为
阅读全文
摘要:1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.Day; 1.5 取当前时 int 时=currentTime.Hour; 1.6 取当前分 int 分=currentTime.Minute; 1.7 取当前秒 int 秒=curre
阅读全文
posted @ 2011-05-13 15:20
StudyNLP
摘要:这些天了解silverlight。离到一个奇怪问题,silverlight beta2.0安装成功后新建silverlight项目出现object reference not set to an instance of an object的错误,无法新建silverlight项目解决办法: 1 关闭所有打开的VS平台 2 进入VS命令行, 3 输入 devenv /resetskippkgs命令,此命令将新打开一个VS平台 4 半闭打开的VS平台 5 输入devenv /setup 命令 6 输入devenv 打开开发平台,现在再新建silverlight项目,你将成功!有微软公司的鼎力支持,
阅读全文

浙公网安备 33010602011771号