摘要: If your catch block do nothing with caught exception you may declare block argument without name (to avoid warning message "CS0168: The variable 'ex' is declared but never used"): try { ... 阅读全文
posted @ 2008-01-15 15:38 josephshi 阅读(341) 评论(0) 推荐(0) 编辑
摘要: How to do this across the entire site: If you would like to apply this behavior to your entire site simply modify the entry of your section in your web.config file like so: 阅读全文
posted @ 2008-01-15 15:36 josephshi 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Verbatim string literal does not require the use of escape characters to define special characters. Instead, any information in the source code, including new lines, is included in the string. To defi... 阅读全文
posted @ 2008-01-15 15:34 josephshi 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1using System; 2using System.Data; 3using System.Data.SqlClient; 4using System.Configurat... 阅读全文
posted @ 2008-01-15 10:10 josephshi 阅读(1116) 评论(1) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> This is a message that should always stay visible... 阅读全文
posted @ 2008-01-15 10:07 josephshi 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 两种经常使用的方法: 1. Update, if @@ROWCOUNT = 0 then insert UPDATE Table1 SET Column1 = @newValue WHERE Id = @id IF @@ROWCOUNT = 0 BEGIN INSERT INTO Table1 (Id, Column1) VALUES (@id, @newV... 阅读全文
posted @ 2008-01-10 12:57 josephshi 阅读(1624) 评论(1) 推荐(0) 编辑
摘要: Just press Ctrl+] and VS.NET will take you to the matching brace. It also will take you to the matching comment, region or quote depending on what is at the cursor now. 阅读全文
posted @ 2008-01-10 09:49 josephshi 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 本文源于Working with DragPanel AJAX Control: ASP Alliance 自从开始做ASP.NET开发,应用到AJAX当然是少不了的,在www.asp.net中找到了AJAXCONTROLTOOLKIT,里面有很多的现成的还是free的AJAX控件,asp.net上面也有很多教学视频可以看,前两天在ASP ALLIANCE上面看到了一个哥们发的WORKING WI... 阅读全文
posted @ 2008-01-09 17:53 josephshi 阅读(717) 评论(3) 推荐(0) 编辑
摘要: Speed up Visual Studio 2005 让VS2005加速 Make sure Visual Studio 2005 SP1 is installed.请确认已经安装VS2005SP1补丁. Turn off animation.关闭自动化设置. Go to Tools | Options | Environment and uncheck Animat... 阅读全文
posted @ 2008-01-09 14:14 josephshi 阅读(652) 评论(0) 推荐(0) 编辑
摘要: 说来奇怪,在家里乖乖的看BLEACH,晚上就发烧了,因为害怕影响老妈休息,就没有给她说,一个人熬到了天亮,这才让她知道,开始了退烧行动.上次发烧好像还是在2005年11月份,许久没有发烧了,感觉有点怪,又有点喜欢它又有点讨厌它.都说每年发一次烧对自己的免疫系统有帮助,不知道经过医学上的证实没有,有的话我就每年发一次,发烧可以请假,可以在家休息,光吃饭喝水就可以了,经过一整天的卧床休... 阅读全文
posted @ 2008-01-09 14:00 josephshi 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 从今天开始,每天翻译一篇ASP.NET或是c#或是SQL SERVER的技术文档,一边提高一边当作是自己的资料库,打断一下,刚刚老婆看到我在打字,很是认真的过来看着说,写什么呢,哦,怎么没有我啊;当然会有了,怎么可能吧老婆给忘了呢。。。话说回来,今年我都26了,该给自己定个职业规划什么的了,2008年,奥运会我也参加不了了还是老老实实的工作学习吧,上半年把ASP.NET 2.0吃透,就这一块很多东... 阅读全文
posted @ 2008-01-05 19:02 josephshi 阅读(194) 评论(0) 推荐(0) 编辑
摘要: There are advantages and disadvantages to today's application-tier caching techniques. Consider your data caching options for improving data-intensive application performance. March 2007 · by Marie-A... 阅读全文
posted @ 2007-12-14 12:33 josephshi 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 附上winform图o(∩_∩)o... 阅读全文
posted @ 2007-12-14 09:14 josephshi 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 昨天想到把一个程序做成在windows启动后自动启动,之前都没有接触过在C sharp中控制注册表,搜索一下看了些资料,大概东西都清楚了,自己做了一个, Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1using System... 阅读全文
posted @ 2007-12-13 15:06 josephshi 阅读(348) 评论(0) 推荐(0) 编辑