有个部落

一晃就半个十年,思念如潮...
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 ··· 11 下一页

2011年11月30日

摘要: 很多时候, 我们需要在批处理里面把一个命令的输出存储到一个变量里面, 可以用下面的代码段实现FOR/F"delims="%%iIN('VER')DO@SETmyvar=%%iECHO%myvar%PAUSE注1: 如果想直接在CMD上运行, 请把"%%"变成"%"注2: 这里演示用的输出命令是"VER", 返回操作系统版本信息注3: "@"在这里是把SET命令的回显关闭其余的就不做多解释, 你懂的 阅读全文

posted @ 2011-11-30 23:51 Leo.W 阅读(632) 评论(0) 推荐(0) 编辑

2011年11月28日

摘要: .NET里面, 处理中文乱码经常是个头痛的问题, Windows API函数MultiByteToWideChar在处理这方面的问题给予了很好的支持[DllImport("kernel32.dll")]publicexternstaticintMultiByteToWideChar(uintcodePage,//CodePageuintdwFlags,//SwitchFlagsstringmultiByteStr,//InputANSIStringintcbMultiByte,//InputANSIStringLength[Out,MarshalAs(UnmanagedTy 阅读全文

posted @ 2011-11-28 22:52 Leo.W 阅读(1037) 评论(0) 推荐(0) 编辑

2011年10月12日

摘要: Original:http://www.c-sharpcorner.com/UploadFile/technoNet/SessionTimeout02192009052301AM/SessionTimeout.aspxByTanimaFebruary 19, 2009I have been exploring Session Timeouts in ASP.Net for some time now. Those of you working on Web Applications would have surely experienced unexpected timeouts result 阅读全文

posted @ 2011-10-12 17:29 Leo.W 阅读(273) 评论(0) 推荐(0) 编辑

2011年10月8日

摘要: 作者:Infinities Loop 概述 ViewState是一个被误解很深的动物了。我希望通过此文章来澄清人们对 ViewState的一些错误认识。为了达到这个目的,我决定从头到尾详细的描述一下整个ViewState的工作机制,其中我会同时用一些例子说明我文 章中的观点,结论。比如我会用静态控件(declared controls)和动态控件(dynamic controls)两个方面来说明同一个问题。 现在有关ViewState的文章可谓多如牛毛,你可能会说再写有关 ViewState的文章无异于炒剩饭(我这篇文章便是:D)。但是我却不这么认为,如果把ViewState看成一匹野马的话. 阅读全文

posted @ 2011-10-08 11:59 Leo.W 阅读(261) 评论(0) 推荐(0) 编辑

摘要: Invalid character in a Base-64 string(ASP.NET) Filed under: ASP.NET 2.0,programming — delroger @ 11:16 am Just came across a very peculiar problem with a website I’m developing. Some visitors to the website hit an error every time they click one of the controls on a particular page; the pag... 阅读全文

posted @ 2011-10-08 11:25 Leo.W 阅读(992) 评论(0) 推荐(0) 编辑

摘要: We have been getting some questions regarding viewstate-related errors like "The viewstate is invalid for this page and might be corrupted" This error is usually caused by the asp worker process or the server recycling. By default, ASP.NET encrypts the viewstate using an Autogenerated Key 阅读全文

posted @ 2011-10-08 11:06 Leo.W 阅读(398) 评论(0) 推荐(0) 编辑

2011年10月6日

摘要: 原文:http://weblogs.asp.net/davidfowler/archive/2009/03/09/invalid-postback-or-callback-argument-in-the-datacontrols.aspx Invalid postback or callback argument I'm sure many of you have seen this error message when developing your web application:... 阅读全文

posted @ 2011-10-06 16:35 Leo.W 阅读(372) 评论(0) 推荐(0) 编辑

2011年9月15日

摘要: A Brief History of Strings Delphi strings in depth Strings are a bit of a mystery to most Delphi developers. The fact that new features are added in almost every new release probably does not help the situation. For example, few developers know the difference between string,... 阅读全文

posted @ 2011-09-15 14:32 Leo.W 阅读(180) 评论(0) 推荐(0) 编辑

2011年9月10日

摘要: 原文: http://www.noupe.com/css/100-great-css-menu-tutorials.htmlNavigation is such an important part of your website. It’s how your visitors navigate to the main areas of your site and makes it easy for them to find your good content. CSS is of course the perfect language for designing beautiful na... 阅读全文

posted @ 2011-09-10 12:09 Leo.W 阅读(265) 评论(0) 推荐(0) 编辑

2011年9月2日

摘要: 不同于TList类,TObjectList类的Add, Remove, IndexOf, Insert等方法都需要传递TObject对象作为参数,由于有了编译期的强类型检查,使得TObjectList比TList更适合保存对象。此外TObjectList对象有OwnsObjects属性。当设定为True (默认值),同TList类不同,TObjectList对象将销毁任何从列表中删除的对象。无论是调用Delete, Remove, Clear 方法,还是释放TObjectList对象,都将销毁列表中的对象。有了TObjectList类,我们就再也不用使用循环来释放了对象。这就避免了释放链... 阅读全文

posted @ 2011-09-02 16:20 Leo.W 阅读(687) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 11 下一页