2016年2月23日

网络共享与Hyper-V虚拟机交换文件的方法

摘要: 1. 现在物理机设置要共享的文件夹,右键文件夹弹出菜单选择“共享”(PS:本文以例E盘的Games文件夹为例); 2. 在弹出的属性窗口中,选择“高级共享”-“共享此文件”,如果需要读写文件等操作请更改权限; 3. 打开“控制面板”中的“网络和共享中心”,在“高级共享设置”里面打开 “启用网络发现” 阅读全文

posted @ 2016-02-23 16:46 周肉肉 阅读(95246) 评论(0) 推荐(2) 编辑

html5页面重置样式(html5.css)

摘要: /* HTML5 ✰ Boilerplate html5页面重置样式*/ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,abbr, address, cite, code, del, 阅读全文

posted @ 2016-02-23 16:19 周肉肉 阅读(1369) 评论(0) 推荐(0) 编辑

页面定时刷新

摘要: 方案一 1.在<head></head>中利用meta标签来定义,页面每隔30s刷新一次,代码如下: <meta http-equiv="refresh" content="30" /> 方案二 在<head></head>中利用Response.AddHeader方法来定义,10s刷新一次,代码如 阅读全文

posted @ 2016-02-23 15:31 周肉肉 阅读(289) 评论(0) 推荐(0) 编辑

JQuery 阻止浏览器后退按钮

摘要: 方案一(个人试过360,谷歌,QQ浏览器都可以,方案二有的浏览器还是可以后退,避免万无一失最好使用方案一) <script type="text/javascript"> function ban() { if (window.history && window.history.pushState) 阅读全文

posted @ 2016-02-23 15:25 周肉肉 阅读(1399) 评论(0) 推荐(0) 编辑

验证货币类型的正则表达式

摘要: 判断用户输入的货币格式是否合法: ^¥\\d+(\\.\\d+)?$ ^$\\d+(\\.\\d+)?$ ^\\d+(\\.\\d+)?元$ public bool validMoney(string str) { return Regex.IsMatch(str,"^\\d+(\\.\\d+)?元 阅读全文

posted @ 2016-02-23 15:18 周肉肉 阅读(1194) 评论(0) 推荐(0) 编辑

正则表达式

摘要: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>正则表达式</title> <script src="js/jquery-1.8.2.min.js"></script> <scrip 阅读全文

posted @ 2016-02-23 15:15 周肉肉 阅读(231) 评论(0) 推荐(0) 编辑

使用AjaxPro来实现异步加载和同步加载

摘要: 1.在项目中添加引用,浏览找到AjaxPro.2.dll文件。 2.在Web.config中写入以下代码 <system.web> <httpHandlers> <add path="ajaxpro/*.ashx" verb="POST,GET" type="AjaxPro.AjaxHandlerF 阅读全文

posted @ 2016-02-23 15:09 周肉肉 阅读(439) 评论(0) 推荐(0) 编辑

A表插入数据其中一个字段是B表的某个字段

摘要: A表插入数据,其中optionalId这个字段是B表的,想把B表字段的数据,插入到A表中。所以写法如下: INSERT INTO OptionalTour_Season(OptionalId) select Id from Country_L_BasicInfo 阅读全文

posted @ 2016-02-23 14:57 周肉肉 阅读(372) 评论(0) 推荐(0) 编辑

MD5加密在Net framework 4.5下面会警告过时

摘要: //4.0,4.5中过时(编译器警告) users.Password = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(txt_pwd.Value.ToString().Trim(), "SHA1 阅读全文

posted @ 2016-02-23 14:55 周肉肉 阅读(542) 评论(0) 推荐(0) 编辑

导航