kejames 學習筆記本

這裡是Kejames的筆記本,歡迎各位網友給予指教,謝謝。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年12月9日

摘要: OSQL -S ServerName -E -i c:\in.txt -o c:\out.txt 說明: 1. -S:大寫,要連線的 SQL Server 2.1 -E:大寫,Windows Authentication 2.2-U: UserName -P:Password 3. -i:小寫,SQL 指令檔 4. -o:小寫,執行完畢 Message 輸出的檔案 阅读全文

posted @ 2008-12-09 15:09 Kejames 阅读(226) 评论(0) 推荐(0)

2008年6月28日

摘要: http://mironabramson.com/blog/post/2008/03/Another-version-for-the-missing-method-EnumTryParse.aspx The 'TryParse' methods for all types are very useful and I'm using them all the time. It's very su... 阅读全文

posted @ 2008-06-28 01:25 Kejames 阅读(561) 评论(0) 推荐(0)

2008年6月26日

摘要: Form validation before onClientClick function ValidateMe() { if(!Page_ClientValidate()) { alert("請檢查各欄位是否正確填寫!"); return true; } else return false;... 阅读全文

posted @ 2008-06-26 02:41 Kejames 阅读(275) 评论(0) 推荐(0)

2008年6月5日

摘要: The version string of a software package name is a maximum of 64 single-byte characters long and can be divided into tokens, using the dot character as the divider. Each token identifies a version or... 阅读全文

posted @ 2008-06-05 18:52 Kejames 阅读(134) 评论(0) 推荐(0)

2008年4月1日

摘要: 在使用RegistryKey可以取得電腦系統內的設定值,進階延伸也可以得到更多的資訊。 以下是示範取得Media Path: using Microsoft.Win32; using System.IO; static void Main(string[] args) { RegistryKey registryKey = Registry... 阅读全文

posted @ 2008-04-01 12:05 Kejames 阅读(239) 评论(0) 推荐(0)

摘要: 今天發現一個不錯的寫法,可以列舉出Enum裡所有的名稱,可以快速的列出你所定義的Enum,在加入至DropDown or Combo Box裡。 class Program { static void Main(string[] args) { foreach ( Student stud in Enum.G... 阅读全文

posted @ 2008-04-01 11:55 Kejames 阅读(682) 评论(0) 推荐(0)

2007年11月30日

摘要: HastTable 沒有Sort 今天要用到Sort,於是google一下,發現有個方法可以達成 就是先以ArrayList將HastTable.Keys先排序後,再讀取HastTable就可以了 Sample code: ArrayList aKeys = new ArrayList( words.Keys ); aKeys.Sort(); foreach ( string key in ... 阅读全文

posted @ 2007-11-30 18:29 Kejames 阅读(537) 评论(0) 推荐(0)

2007年11月20日

摘要: 1. 配置文件概述: 應用程序配置文件是標準的 XML 文件,XML 標記和屬性是區分大小寫的。它是可以按需要更改的,開發人員可以使用配置文件來更改設置,而不必重編譯應用程序。配置文件的根節點是 configuration。我們經常訪問的是appSettings,它是由.Net預定義配置節。我們經常使用的配置文件的架構是象下面的形式。先大概有個印象,通過後面的實例會有一個比較清楚的認識。下面的... 阅读全文

posted @ 2007-11-20 09:36 Kejames 阅读(451) 评论(0) 推荐(0)

2007年11月18日

摘要: using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Data; using System.Data.OleDb; using System.Configuration; namespace Athrun { class OleDb... 阅读全文

posted @ 2007-11-18 00:58 Kejames 阅读(279) 评论(0) 推荐(0)

2007年10月6日

摘要: 各位如果是用VS.Net 2005 IDE開發的話,一定要先看看下面的文章,相信會有很大的幫助的 ^_^ 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer 阅读全文

posted @ 2007-10-06 01:23 Kejames 阅读(173) 评论(0) 推荐(0)