I BELIEVE I CAN

加油,努力,奋斗!!

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  Technology

Search from web
C#对Dictionary的按Value排序
摘要:使用List对其进行排序using System; using System.Collections.Generic; using System.Text;namespace ConsoleApplication4 { class Program { static void Main(string[] args) { Dictionary dic = new Dictionary(); dic.Add("Arraymin", "c:\\demo\\min.xsl"); dic.Add("Arraymax", "c:\\dem 阅读全文

posted @ 2013-10-06 00:29 朱小能 阅读(2837) 评论(0) 推荐(0) 编辑

javascript 调用webservice 的几种方法
摘要:1. Sys.Net.WebServiceProxy.invoke( 'WebService Path',//Service路径 'IsSubmitByURL',//调用方法 true,//是否使用HttpGet {'name':name},//参数 Onsucceeded,//OnSucceeded时回调函数 null,//OnFailed时回调函数 null,//UserContext 5000//TimeOut ); function Onsucceeded(){ //todo} http://technet.microsoft.com/z 阅读全文

posted @ 2013-03-04 15:58 朱小能 阅读(388) 评论(0) 推荐(0) 编辑

修改域名映射IP地址
摘要:文件夹: C:\Windows\System32\Drivers\etc文件: hosts添加:Ip 域名 阅读全文

posted @ 2013-01-23 15:47 朱小能 阅读(367) 评论(0) 推荐(0) 编辑

VS2010 定位文件在solution中的位置
摘要:[Tools]->[Options]->[Projects and Solutions]->[General]->check [Track Active Item in Solution Explorer] 阅读全文

posted @ 2012-12-27 15:34 朱小能 阅读(404) 评论(0) 推荐(0) 编辑

文件的还原与备份
摘要:1。 还原   private void menuOpen_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.InitialDirectory = ConfigurationManager.AppSettings["FilePath"] + "DataBase"; ofd.Title... 阅读全文

posted @ 2010-10-28 16:18 朱小能 阅读(241) 评论(0) 推荐(0) 编辑

ASCII码,对应e.KeyChar
摘要:Ctrl+C: 3Ctrl+V: 22Ctrl+A: 1Delete: 8Space: 32Ctrl+Z: 26+8Ctrl+Y: 25 阅读全文

posted @ 2010-10-27 16:44 朱小能 阅读(406) 评论(0) 推荐(0) 编辑

Excel 如何由一个文本算术公式得到一个结果
摘要:a1和a2单元格里分别由2*3和2*3+1要想在b1和b2单元格里分别显示它们的结果光标定位在B1上.菜单-插入-名称在名称中输入结果两个字.在引用中输入=EVALUATE(A1)就可以了.你只要在单元格中输入=GetResult就会算出左边单元格算式的值.***你只要在单元格中输入=GetResult excel 2007中菜单-公式-自定义名称-名称资源器或者直接快捷键Ctrl+F3 阅读全文

posted @ 2010-10-08 17:29 朱小能 阅读(1118) 评论(0) 推荐(0) 编辑

Word、Excel中输入当前日期及时间的快捷键
摘要:在Word文档中,按下“Shift+Alt+D”组合键,就可以输入系统日期,按下“Shift+Alt+T”组合键,就可以输入系统时间。   注意:①如果文档录入完成后,不希望其中某些日期和时间随系统的改变而改变,请选中相应的日期和时间,按下“Ctrl+Shift+F9”组合键切断域的链接就行了。②系统日... 阅读全文

posted @ 2010-09-26 15:09 朱小能 阅读(10817) 评论(0) 推荐(0) 编辑

c# ToString 格式化数字
摘要://2007-4-24 this.TextBox7.Text = System.DateTime.Now.ToString("d"); //2007年4月24日 16:30:15 this.TextBox8.Text = System.DateTime.Now.ToString("F"); //2007年4月24日 16:30 this.TextBox9.Text = System.DateTim... 阅读全文

posted @ 2010-09-26 13:09 朱小能 阅读(258) 评论(0) 推荐(0) 编辑

GridView绑定
摘要:在温习一下gridview绑定,包括最简单的增删改Html代码如下:[代码]后台代码:数据绑定[代码]点击编辑按纽[代码]更新[代码]取消[代码]删除[代码]添加记录[代码]很简单的东西长时间不用就忘记了,贴在这里待以后参考 阅读全文

posted @ 2009-07-02 16:20 朱小能 阅读(418) 评论(0) 推荐(0) 编辑

Filelog
摘要:做了3年开发了,最近发现基础还是很重要,应该是深博,而不是博深,陆续贴点基础类记录日志[代码]调用很简单//9表示保留9个日志文件,循环向后拷贝LogFile.RenameLogFile(9); // 记录日志内容LogFile.LogInfo("test", LogType.Error); 阅读全文

posted @ 2009-06-30 14:45 朱小能 阅读(534) 评论(0) 推荐(0) 编辑

List 排序
摘要:List<T> 排序不说什么了,直接贴代码[代码]我们调用的时候,直接排序SortList<Model>.Sort(IListModel as List<Model>, "Name", true); 阅读全文

posted @ 2009-01-14 09:20 朱小能 阅读(734) 评论(0) 推荐(0) 编辑

About DbProviderFactory
摘要:有时间研究了一下.net framework的DbProviderFactory (ADO.NET), namespace:System.Data.Common;使用DbProviderFactory factory = DbProviderFactories.GetFactory(providerName);connection = factory.CreateConnection();可以很方... 阅读全文

posted @ 2009-01-07 16:39 朱小能 阅读(1936) 评论(1) 推荐(1) 编辑

读取Excel数据
摘要:Fromhttp://www.cnblogs.com/gossip/archive/2008/12/25/1362005.htmlprivate DataTable GetDataTableFromExcel() { #region 获取应用程序路径 //获取应用程序的当前工作目录。 String path1 = System.IO.Directory.GetCurrentDirectory()... 阅读全文

posted @ 2008-12-25 17:05 朱小能 阅读(243) 评论(0) 推荐(0) 编辑

NUNIT使用说明
摘要:最近在使用NUNIT做项目,搜索了一下使用说明NUNIT使用说明一:软件及安装免费,开源的单元测试软件。安装只要运行安装程序,按所有缺省设置即可。NUNIT:www.nunit.orgNUNIT ADDIN :http://sourceforge.net/projects/nunitaddin/二:DLL的测试1:新建一个Class Library PROJECT,2:加入待测试DLL的引用,3:... 阅读全文

posted @ 2008-12-19 13:35 朱小能 阅读(215) 评论(0) 推荐(0) 编辑

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