11 2012 档案
摘要:usingSystem;usingSystem.Drawing;usingSystem.Drawing.Drawing2D;usingSystem.Drawing.Imaging;usingSystem.IO;usingSystem.Text;usingSystem.Web;namespaceWanJia.CommonUtility{///<summary>///VerifyCode///</summary>publicclassVerifyCode{#regionPrivateField&PublicProperty//随机种子privateRandomobj
阅读全文
摘要:大家都知道SQL语句是酱紫的:正常: select * from [User] where userName like '%admin%' 参数化: select * from [User] where userName like @userName这样就查出了包括admin关键字的记录就是这个简单的语句,在参数化的时候怎么也查不出来,去拼like后面的字符串拼成酱紫的: 错误: new SqlParameter("@userName", string.Format("%'{0}'%", userName)); 错误: n
阅读全文
摘要:publicclassBitmapHelper{///<summary>///生成缩略图///</summary>///<paramname="originalImagePath">源图路径(物理路径)</param>///<paramname="thumbnailPath">缩略图路径(物理路径)</param>///<paramname="width">缩略图宽度</param>///<paramname="height
阅读全文
摘要:<?phpclassPhone{//私有字段private$number;private$color;//构造函数(魔术方法)并初始化默认值function__construct($number='10086',$color='黑色'){$this->number=$number;$this->color=$color;}//取值publicfunction__get($proName){return$this->$proName;}//赋值(接收两个参数,即字段名和值)publicfunction__set($proName,$proV
阅读全文