上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页
摘要: /// /// 清空指定的文件夹,但不删除文件夹 /// /// private void DeleteFolder(string dir) { foreach (string d in Directory.GetFileSystemEntries(dir)) ... 阅读全文
posted @ 2017-02-13 11:41 会弹猫的吉他 阅读(10617) 评论(0) 推荐(0) 编辑
摘要: public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; System.IO.Stream s = context.Request.InputStream; int count ... 阅读全文
posted @ 2017-02-10 16:50 会弹猫的吉他 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 方法不加访问修饰符默认的是 private 类不加访问修饰答默认的是 internal ///////////////////////////////////////////////////////////// 一个编译器错误提示:在命名空间中定义的元素无法显示的声明为 private, protected, protected internal。 能在命名空间中定义的元素有:类(class),... 阅读全文
posted @ 2017-02-09 16:00 会弹猫的吉他 阅读(230) 评论(0) 推荐(0) 编辑
摘要: /******************************************************************** * * 使本项目源码前请仔细阅读以下协议内容,如果你同意以下协议才能使用本项目所有的功能, * * 否则如果你违反了以下协议,有可能陷入法律纠纷和赔偿,作者保留追究法律责任的权利。 * * * * Copyright (C) 2014-? xxx C... 阅读全文
posted @ 2017-02-06 15:50 会弹猫的吉他 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 1. 怎样调整代码排版的格式? 选择:编辑—>高级—>设置文档的格式或编辑—>高级—>设置选中代码的格式。 格式化cs代码:Ctrl+k+f 格式化aspx代码:Ctrl+k+d 2. 怎样跳转到指定的某一行? 两种方法:Ⅰ. Ctrl+G Ⅱ. 双击状态栏中的行号 3. 怎样创建矩形选区? 两种方法:Ⅰ. 摁住alt键,然后拖动鼠标即可。 Ⅱ. 按住Shift+Alt点击矩形的左上和右下位置即... 阅读全文
posted @ 2017-02-03 17:37 会弹猫的吉他 阅读(670) 评论(0) 推荐(0) 编辑
摘要: //使用双缓冲:添加新类继承ListView 对其重写 public class DoubleBufferListView : ListView { public DoubleBufferListView() { SetStyle(ControlStyles.DoubleBuffer | ControlS... 阅读全文
posted @ 2017-01-22 12:57 会弹猫的吉他 阅读(473) 评论(0) 推荐(0) 编辑
摘要: https://ipip.yy.com/get_ip_info.php http://pv.sohu.com/cityjson?ie=utf-8 http://www.ip168.com/json.do?view=myipaddress http://www.ipip.net/ip.php http://ip.chemdrug.com/ http://ip.siteloop.net/ http:... 阅读全文
posted @ 2017-01-19 14:53 会弹猫的吉他 阅读(318) 评论(0) 推荐(0) 编辑
摘要: JArray ja = new JArray(); JObject jo = new JObject(); jo.Add("1","1"); ja.Add(jo); ja.Add(jo); ja.ToList().ForEach(x => ((JObject)x).Add("2", "2")); Console.WriteLine(ja.ToString()); 阅读全文
posted @ 2017-01-06 14:57 会弹猫的吉他 阅读(4542) 评论(0) 推荐(0) 编辑
摘要: 1. 部署网站到IIS7.5,Window 2008的时候出现这个错误 2. 错误信息 Server Error in ‘/’ Application. Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=3.0.0.0, Cul... 阅读全文
posted @ 2017-01-04 11:38 会弹猫的吉他 阅读(723) 评论(0) 推荐(0) 编辑
摘要: Windows下的Memcache安装: 1. 下载memcache的windows稳定版,解压放某个盘下面,比如在c:\memcached2. 在终端(也即cmd命令界面)下输入 ‘c:\memcached\memcached.exe -d install’ 安装,安装完成后刷新电脑的服务列表会发 阅读全文
posted @ 2017-01-03 16:04 会弹猫的吉他 阅读(156) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页