摘要: 轻松实现验证码,以此为基础,什么高大上验证码万变不离其中,有注释的喔:-O;生成验证码: public void Validate() { Random r = new Random(); string str = null; ... 阅读全文
posted @ 2015-07-28 16:59 我_爱编程 阅读(692) 评论(2) 推荐(2) 编辑
摘要: 上传图片全不怕,轻松实现图片上传, 可以实现显示缩略图喔: 后台代码: protected void btnpic_upload_Click(object sender, EventArgs e) { #region 上传文件 Bo... 阅读全文
posted @ 2015-07-28 16:34 我_爱编程 阅读(628) 评论(0) 推荐(0) 编辑
摘要: c#方法一: TransactionOptions transactionOption = new TransactionOptions(); //设置事务隔离级别 transactionOption.IsolationLevel = Syst... 阅读全文
posted @ 2015-07-28 15:22 我_爱编程 阅读(3600) 评论(1) 推荐(1) 编辑
摘要: Mvc中:session:if (!string .IsNullOrEmpty(find)) //设置Session["oip"] = "无锡";ViewBag.oip =Session["oip"];if (Session["oip"] == null) //获取Session... 阅读全文
posted @ 2015-07-28 15:07 我_爱编程 阅读(1016) 评论(0) 推荐(1) 编辑