按照網友提出的意見,指令碼代碼已經更新。詳情請查看 http://www.cnblogs.com/Kellin/archive/2007/09/20/900668.html。本文中的樣本也相應被更新了。 在部落格上寫文章,粘貼代碼的時候如何格式化好,是我經常碰到的一個問題。用部落格園提供的那些格式化工具倒是不錯,不過要做些更改的話就比較麻煩點。而且像我這樣比較喜歡直接編輯 HTML 的不是很喜歡使用這些工具。因為要使用這些工具,必須換到可視化編輯狀態。而再換回到 HTML
A DropDownList Bug I found there was a bug in System.Web.UI.WebControls.DropDownList recently. When I created items for a DropDownList control using DropDownList.DataBind method, an exception was always thrown. The error message looked like:
When developing windows/console applications using .Net, it is recommended to catch the following two exceptions:AppDomain.CurrentDomain.UnhandledExceptionApplication.ThreadExceptionIf there are some uncaught exceptions raised in a app-domain, the
We have developed a class library. Then we'll send this library to other teams.We want to make our library appear in the "Add Reference" dialog box in Visual Studio. So that the class library users can add references easily.Just like they add a
For our source's security, an adminstrator of Microsoft Visual SourceSafe should do a backup daily or weekly at least. The backup process won't cost us a long time, but we prefer automatical backup for sure. Let's introduce how to implement a daily
When I serialized an object into an XML string using XmlSerializer recently, I found that all the fields which were marked with the ObsoleteAttribute were ignored by XmlSerializer. I couldn't find the associated attributes in the XML string.