摘要: http://www.petri.co.il/open_explorer_in_c_instead_of_the_my_computer.htm Yes. You can execute explorer from the command line or from a shortcut and use switches to control the view. The syntax is: ... 阅读全文
posted @ 2008-02-16 21:21 Vincent Yang 阅读(293) 评论(0) 推荐(0) 编辑
摘要: February 6, 2008 by pinaldave This is very common request recently - How to import CSV file into SQL Server? How to load CSV file into SQL Server Database Table? How to load comma delimited file into ... 阅读全文
posted @ 2008-02-08 07:39 Vincent Yang 阅读(998) 评论(0) 推荐(0) 编辑
摘要: C:\Program Files\Microsoft Visual Studio 9.0\Common7\VS2008ImageLibrary\1033\VS2008ImageLibrary.zip 阅读全文
posted @ 2008-01-31 06:11 Vincent Yang 阅读(304) 评论(0) 推荐(0) 编辑
摘要: Ref http://support.microsoft.com/kb/314546/en-us 阅读全文
posted @ 2008-01-29 08:37 Vincent Yang 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Calling the function from codeMailHelper.SendMailMessage("fromAddress@yourdomain.com", "toAddress@yourdomain.com", "bccAddress@yourdomain.com", "ccAddress@yourdomain.com", "Sample Subject", "Sample bo... 阅读全文
posted @ 2008-01-29 08:31 Vincent Yang 阅读(693) 评论(0) 推荐(0) 编辑
摘要: The .NET Framework 2.0 provides APIs for accessing settings in a configuration file. Here's how you access the mail settings of a config file programmatically: C#using System.Configuration; using Syst... 阅读全文
posted @ 2008-01-29 08:28 Vincent Yang 阅读(514) 评论(0) 推荐(0) 编辑
摘要: Published: 21 Jan 2008By: Keyvan NayyeriDownload Sample Code (Ref: http://dotnetslackers.com/articles/designpatterns/HowToWriteAProviderModel.aspx) In this article Keyvan teaches you how to write yo... 阅读全文
posted @ 2008-01-23 12:36 Vincent Yang 阅读(617) 评论(1) 推荐(0) 编辑
摘要: 1.没学前是一点不懂,根本想不到用设计模式,设计的代码很糟糕; 2.学了几个模式后,很开心,于是到处想着要用自己学过的模式,于是时常造成误用模式而不自知; 3.学完全部模式时,感觉诸多模式极其相似,无法分清模式之间的差异,有困惑,但深知误用之害,应用之时有所犹豫; 4.灵活应用模式,甚至不应用具体的某种模式也能设计出非常优秀的代码,以达到无剑胜有剑的境界。 Ref:转载 阅读全文
posted @ 2008-01-17 12:28 Vincent Yang 阅读(322) 评论(0) 推荐(0) 编辑
摘要: It's finally here - the launch of the .NET Reference Source project. This post (hopefully!) contains everything you need to know. Over the past few weeks, we ran a pilot of this feature and collecte... 阅读全文
posted @ 2008-01-17 10:32 Vincent Yang 阅读(1555) 评论(0) 推荐(0) 编辑
摘要: Ref: Article During recent few engagements with my customers I've noticed VIewState is extensively [unintentionally] used. ViewState is on by default. The result is heavy weight Html that round trips... 阅读全文
posted @ 2008-01-16 12:16 Vincent Yang 阅读(366) 评论(1) 推荐(0) 编辑
摘要: This code sample shows how to retrieve a list of computers from Active Directory and use a For/Next to loop through the collection. I've used this code sample on several scripts and using Active Di... 阅读全文
posted @ 2008-01-10 06:43 Vincent Yang 阅读(282) 评论(0) 推荐(0) 编辑
摘要: Interoperability between ASP.NET Web services and Windows Communication Foundation (WCF) Web services can be achieved by ensuring that services implemented using both technologies conform to the WS-I ... 阅读全文
posted @ 2008-01-09 11:19 Vincent Yang 阅读(235) 评论(0) 推荐(0) 编辑
摘要: To configure a Windows Communication Foundation (WCF) service endpoint to be interoperable with ASP.NET Web service clients, use the System.ServiceModel.BasicHttpBinding type as the binding type f... 阅读全文
posted @ 2008-01-09 11:17 Vincent Yang 阅读(476) 评论(0) 推荐(0) 编辑
摘要: '>View Details OR '>HyperLink 阅读全文
posted @ 2008-01-09 07:15 Vincent Yang 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Sometimes repairing a profile will work, otherwise this was posted by a fellow who contacted Microsoft Tech. To fix the Publisher page sorter issue, simply follow the steps below. But b... 阅读全文
posted @ 2008-01-08 14:05 Vincent Yang 阅读(401) 评论(0) 推荐(0) 编辑
摘要: This is a quite common question. It is usually asked by people arriving at SQL Server with a background in Microsoft Access. They either want to use SQL Server as a backend for their Access project,... 阅读全文
posted @ 2008-01-08 09:04 Vincent Yang 阅读(381) 评论(0) 推荐(0) 编辑
摘要: Strategy pattern From Wikipedia, the free encyclopedia Jump to: navigation, search In computer programming, the strategy pattern is a particular software design pattern, whereby algorithms can be sel... 阅读全文
posted @ 2008-01-06 11:37 Vincent Yang 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 请高手告知。 阅读全文
posted @ 2007-12-26 20:40 Vincent Yang 阅读(387) 评论(0) 推荐(0) 编辑
摘要: you could find the signature files in something akin to: [root]\Users\[username]\AppData\Roaming\Microsoft\Signatures Reference: http://blogs.technet.com/ewan/archive/2007/06/25/outlook-2007-signa... 阅读全文
posted @ 2007-12-22 14:04 Vincent Yang 阅读(528) 评论(0) 推荐(0) 编辑
摘要: When you copy large files to or from earlier operating systems, the copy operation may be slower than expected on some Windows Vista-based computers WORKAROUND To work around this problem, you may... 阅读全文
posted @ 2007-12-18 15:30 Vincent Yang 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 如何在ASP.NET中使用Http Handler 阅读全文
posted @ 2007-12-18 05:58 Vincent Yang 阅读(588) 评论(0) 推荐(0) 编辑
摘要: From a command prompt: (Start -> Run -> command -> OK) type:SystemInfo >C:\Info.txt (Output the result to a text file) SystemInfo (Output the result on the screen) 阅读全文
posted @ 2007-12-02 12:34 Vincent Yang 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 重构什么时候开始: 一个功能没有完成就开始重构吗?不是。所有功能都完成开始重构吗?更不是。重构是一项贯穿我们程序开发的工作,当一个功能完成(能够正常工作,通过单元测试)的时候就应该开始重构。 重构的标准: 什么时候你的代码中没有重复了,基本上你可以不要重构了。如果你的代码具有良好的可读性就更好了。 重构的必要性: 重构不是一个可有可无的东西,一个好的程序员应该时刻把重构的想法放在... 阅读全文
posted @ 2007-12-01 06:26 Vincent Yang 阅读(428) 评论(2) 推荐(0) 编辑
摘要: protected void gvwCategories_RowCreated(object sender, GridViewRowEventArgs e){ if (e.Row.RowType == DataControlRowType.DataRow) { ImageButton btn = e.Row.Cells[4].Controls[0] as ImageButton;... 阅读全文
posted @ 2007-11-21 08:36 Vincent Yang 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 在Cnblog搜索一下会有很多文章介绍关于Datalist 嵌套 Repeater, Repeater嵌套Repeater, DataList嵌套DataList的文章,概括起来也就那么几种方法,有兴趣的朋友看了以后,如果有缺少的可以补上 1. 微软的方法,就是用一个dataset,把数据分别fill到这个dataset的两个表格中,然后设置好关系。 ... 阅读全文
posted @ 2007-10-12 17:19 Vincent Yang 阅读(369) 评论(2) 推荐(0) 编辑
摘要: Add the following code to the template.master.cs file: protected void Page_PreRender(object sender, EventArgs e) { HttpContext.Current.Response.AppendHeader("Refresh", ... 阅读全文
posted @ 2007-10-01 05:53 Vincent Yang 阅读(341) 评论(0) 推荐(0) 编辑
摘要: // Carry over profile property values from an anonymous to an authenticated state void Profile_MigrateAnonymous(Object sender, ProfileMigrateEventArgs e) { ProfileCommon anonProfile =... 阅读全文
posted @ 2007-08-29 09:23 Vincent Yang 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 当时写程序的时候,因为老板非要一个PDF report,苦于crystal report deployment太麻烦了,所以就用了reportviewer,而且中间偷懒了一下,直接用typed dataset生成了dataset,问题就出现在,因为这次要把原来的project在重新做给其他公司一套,而且数据库更换了名字,而当时用typed dataset的时候是直根据当时的ConnectionSt... 阅读全文
posted @ 2007-08-14 08:54 Vincent Yang 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 摘要: 本文解决使用Visual Studio 2008 Beta 2调试IIS7 (Vista)站点时发生的“Unable to start debugging on the web server. 强名称验证失败。”问题。(英文版提示文字:Unable to start debugging on the web server. Strong name validation failed.) ... 阅读全文
posted @ 2007-08-12 12:03 Vincent Yang 阅读(1124) 评论(0) 推荐(0) 编辑
摘要: 试验了好半天也没有找到相应的方法我的数据库是MS Access,没找到一个正确方法加参数例如Database db = DabaseFactory.CreateDatabase();DbCommand cmd = db.GetSqlStringCommand("select * from products where productID = ?");用Db.AddInParameter()这个函数... 阅读全文
posted @ 2007-07-04 11:09 Vincent Yang 阅读(594) 评论(3) 推荐(0) 编辑