随笔分类 -  .net

摘要:有一次到了一年的最后一晚,我还是我,还是在这个不足十平方左右的出租屋里,还是一个人坐在电脑旁,也只能听到自己的呼吸声和敲打键盘的声响,外边毅然是冷嗖嗖的,希望这一刻暂停一下,让我慢慢思考一下这一年发生的一切。 首先:这一年世界发了太多的事情,有太多的人离开了这个世界, 我虽然有一颗与世界人民同呼吸共... 阅读全文
posted @ 2014-12-31 22:00 (二少)在南极 阅读(181) 评论(1) 推荐(0)
摘要:用户名: 密码: 01234 清空56789确认 阅读全文
posted @ 2013-11-06 22:22 (二少)在南极 阅读(8565) 评论(0) 推荐(0)
摘要:今天是一年一度的中秋节,最近总是感觉时间过得太快了,自己的都快已经30了,古人说三十而立,但看看自己还是一无所有。先不说这悲伤的事了,来上海已经两个年头了,想想刚到的这情景,仍记忆犹新。不过都已经过去了。已经毕业5个年头了,想想这5年来的生活发现没有可追忆的。真是过得一团槽,也许这一辈子就这样过去了,但心理总是不甘心。也许好多人和我一样。但自己有不能改变自己。我一至被挣钱束缚住了,也许争不到钱,才越想拥有更多,只是想生活过得更好。有一套子和一辆车子。也许这就是自己一辈子所追求的吗?今天的感悟先写到这吧。话说来上海是从小的梦想,因为这是一个大的都市,在这也许有自己的发展天空,其实到哪都一样,关. 阅读全文
posted @ 2013-09-19 23:16 (二少)在南极 阅读(338) 评论(1) 推荐(0)
摘要:JS时间倒计时 阅读全文
posted @ 2013-09-04 17:57 (二少)在南极 阅读(6015) 评论(0) 推荐(0)
摘要:public void GetStr() { string url = "http://kb.cnblogs.com/list/1001/"; HtmlWeb web = new HtmlWeb(); //htmlWeb.DefaultEncoding = System.Text.Encoding.GetEncoding(""); HtmlAgilityPack.HtmlDocument doc = web.Load(url); HtmlNode rootnode = doc.DocumentNode; string xpathstring = &quo 阅读全文
posted @ 2013-05-31 18:02 (二少)在南极 阅读(1387) 评论(0) 推荐(1)
摘要:publicclassLogManager{privatestaticstringlogPath=string.Empty;///<summary>///保存日志的文件夹///</summary>publicstaticstringLogPath{get{if(logPath==string.Empty){if(System.Web.HttpContext.Current==null)//WindowsForms应用logPath=AppDomain.CurrentDomain.BaseDirectory;else//Web应用logPath=AppDomain.Cur 阅读全文
posted @ 2013-05-15 14:19 (二少)在南极 阅读(254) 评论(0) 推荐(0)
摘要:function AjaxMethod() { //this.init.apply(this, arguments); } AjaxMethod.prototype = { init: function() { debugger; }, GetJson: function() { jQuery.getJSON( "Json.ashx", { name: 'test', age: 32 }, function(data) { debugger; var txt = eval(data); //var obj = data.toJSONString(); //由 阅读全文
posted @ 2013-04-20 14:45 (二少)在南极 阅读(3016) 评论(0) 推荐(0)
摘要:在dataBase 菜单下Edit current DBMS-在Script\Objects\Table\TableComment和Script\Objects\Column\ColumnComment位置的直修改如下表的修改如下:EXECUTE sp_addextendedproperty N'MS_Description', N'%COMMENT%', N'user', N'dbo', N'table', N'%TABLE%', NULL, NULL列的修改如下:EXECUTE sp_addex 阅读全文
posted @ 2012-11-26 16:38 (二少)在南极 阅读(354) 评论(0) 推荐(0)
摘要:由于表达能力太差,直接上代码..List<Serializationcs.Student> list = new List<Serializationcs.Student>(); list.Add(new Serializationcs.Student { Age=12,Name="test",No="1232" }); list.Add(new Serializationcs.Student { Age = 34, Name = "testtest", No = "444" }); Ser 阅读全文
posted @ 2012-11-23 15:37 (二少)在南极 阅读(373) 评论(0) 推荐(0)
摘要:var options = { type: "POST", url: "/WEPM.OA.Web/OAHandler.ashx?Type=Grade&ProjectID=" + ProjectID + "&Batch=" + Batch, contextType: "application/json; charset=utf-8", dataType: "json", success: function(response) { jQuery("#CountNumber& 阅读全文
posted @ 2012-11-21 10:26 (二少)在南极 阅读(1782) 评论(0) 推荐(0)
摘要:DataTable dt = new DataTable(); DataColumn d1 = new DataColumn("id", System.Type.GetType("System.Int32")); DataColumn d2 = new DataColumn("text", System.Type.GetType("System.String")); DataColumn d3 = new DataColumn("Icon", System.Type.GetType(" 阅读全文
posted @ 2012-10-22 17:27 (二少)在南极 阅读(1246) 评论(0) 推荐(0)
摘要:DataTable dt = costFO.GetQueryTable(projectid, date); var newrow = from x in dt.Rows.Cast().Where(C => C.Field("CostMonthReportItem_Type") != "") select new { type = x.Field("CostMonthReportItem_Type").ToString(), name = x.Field("CostMonthReportItem_PayNext... 阅读全文
posted @ 2012-08-27 11:58 (二少)在南极 阅读(561) 评论(0) 推荐(0)
摘要:配置文件的 添加System.Web.Security.FormsAuthentication.SetAuthCookie(name, true);退出System.Web.Security.FormsAuthentication.SignOut(); 阅读全文
posted @ 2012-08-24 16:57 (二少)在南极 阅读(197) 评论(0) 推荐(0)
摘要:消息 ID: 1603 安装过程中出现错误。请执行以下步骤 原因是在以前安装过silverlight,没有安装成功或者没有彻底卸载干净,遗留了一些文件,尤其是安装时突然中断的时候会出现这个问题。 解决方法: 将 C:\windows\Installer\{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00} 文件删除后重新安装就可以。 然后CMD运行 reg delete HKLM\Software\Microsoft\Silverlight /f rmdir /s /q "%ProgramFiles%\Microsoft Silverlight ... 阅读全文
posted @ 2012-07-23 14:33 (二少)在南极 阅读(1747) 评论(0) 推荐(0)
摘要:function ok(){ debugger try{ var obj = new ActiveXObject("Scripting.Dictionary");//创建对象 obj.Add("hello",null);//增加新项 obj.Item("hello")="Chiweiyao";//给新增添的项赋值 obj.Add("world",null); obj.Item("world")="Greate"; 获取值 alert( obj.item(& 阅读全文
posted @ 2012-06-26 23:22 (二少)在南极 阅读(14158) 评论(2) 推荐(0)
摘要:public static string CreateJsonParameters(DataTable dt) { /* /**************************************************************************** * Without goingin to the depth of the functioning of this Method, i will try to give an overview * As soon as this method gets a DataTable it starts to convert i 阅读全文
posted @ 2012-06-18 21:43 (二少)在南极 阅读(195) 评论(0) 推荐(0)
摘要:直接上代码:一看就懂var query = from c in ctx.Customerswhere c.City == "London"select c;,var query = from c in ctx.Customerswhere c.City.StartsWith("Lo")select c;var query = from c in ctx.Customerswhere c.City.StartsWith("L") && c.City.Contains("n")select c;var 阅读全文
posted @ 2012-06-08 14:32 (二少)在南极 阅读(1242) 评论(0) 推荐(0)
摘要:iisapp命令可以获得当前运行的w3wp进程对应的应用程序池和 有时打开资源管理器后常发现N个w3wp进程,有时某个进程占用了过高的内存,以前不得不挨个回收应用程序池来观察是哪个应用程序池对应哪个w3wp进程,最近在网上发现一篇文章,介绍一方法,可以查到w3wp对应的池子。1、在任务管理器中增加显示pid字段。就可以看到占用内存或者cpu最高的进程pid2、在命令提示符下运行iisapp -a。注意,第一次运行,会提示没有js支持,点击确定。然后再次运行就可以了。这样就可以看到pid对应的应用程序池3、到iis中察看该应用程序池对应的网站,就ok了 阅读全文
posted @ 2012-06-04 15:34 (二少)在南极 阅读(1915) 评论(0) 推荐(0)
摘要:代码中出现空格全被点替换按了Ctrl + R, Ctrl + W时出来的。另外通过编辑菜单下高级---查看空白命令也可以切换显示空白的方式。 阅读全文
posted @ 2012-06-02 10:37 (二少)在南极 阅读(1791) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ComponentModel;using System.Globalization;using System.Collections;using System.Collections.Specialized;using System.Reflection;namespace enumkey{ class Program { static void Main(string[] args) { Type enu 阅读全文
posted @ 2012-06-01 17:31 (二少)在南极 阅读(234) 评论(0) 推荐(0)