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 阅读全文
posted @ 2012-11-22 17:39 ゞ追忆o0ゞ 阅读(795) 评论(0) 推荐(1) 编辑
摘要:大家都知道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 阅读全文
posted @ 2012-11-21 11:09 ゞ追忆o0ゞ 阅读(2954) 评论(2) 推荐(0) 编辑
摘要:publicclassBitmapHelper{///<summary>///生成缩略图///</summary>///<paramname="originalImagePath">源图路径(物理路径)</param>///<paramname="thumbnailPath">缩略图路径(物理路径)</param>///<paramname="width">缩略图宽度</param>///<paramname="height 阅读全文
posted @ 2012-11-09 14:42 ゞ追忆o0ゞ 阅读(489) 评论(0) 推荐(0) 编辑
摘要:<?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 阅读全文
posted @ 2012-11-05 23:46 ゞ追忆o0ゞ 阅读(288) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示