常見問題總結:
1、GridView滑鼠移入顯示行相對應的圖片 :http://www.cnblogs.com/lz1211/archive/2009/12/11/1621758.html
2、中英文字元分割方法
string str = "4-03王三20110622";Match match = new Regex(@"([^/u4e00-/u9fa5]+)([/u4e00-/u9fa5]+)(/d+)").Match(str);Response.Write(match.Groups[1].Value + "<br/>" + match.Groups[2].Value + "<br/>" + match.Groups[3].Value);
3、C#觸控螢幕程式設計:
http://msdn.microsoft.com/zh-cn/library/ms811395.aspx
4、站內搜尋:
http://blog.sina.com.cn/s/blog_5ccfaa880100ang4.html 5、WinForm項目打包(含資料庫):http://www.cnblogs.com/scottckt/archive/2011/05/14/2046313.html6、產生不重複的隨機數:int[] arr = new int[54];List<int> list = new List<int>();for (int i = 1; i <= 54; i++) list.Add(i);Random ran = new Random();for (int i = 0; i < arr.Length; i++){ int temp = list[ran.Next(list.Count)]; arr[i] = temp; list.Remove(temp);}------------------------------------------------------- int[] num = Enumerable.Range(1, 54).Select(x => new { Key = Guid.NewGuid().ToString(), Value = x }).ToList().OrderBy(x => x.Key).ToArray(); data.ToList().ForEach(x => Console.Write(x.Value + " "));-------------------------------------------------------Random rand = new Random();List<int> temp = new List<int>();while (temp.Count < 54){ // Random()能取下界值,但不能取上界值,所以是1~55 int i = rand.Next(1, 55); if (!temp.Contains(i)) temp.Add(i);}int[] result = temp.ToArray();foreach (int i in result) Console.WriteLine(i);7、徹底解決Asp.net檔案下載(Response.WriteFile)時檔案名稱的中文亂碼和空格異常問題http://hi.baidu.com/591u/blog/item/8fc020389bddd0fcb311c72d.html8、網頁上的視頻播放功能(jquery外掛程式)http://www.malsup.com/jquery/media/#overview http://www.cnblogs.com/xiachufeng/archive/2010/07/01/1769120.htmlhttp://www.cnblogs.com/wf5360308/articles/1574887.html9、C#視頻監控模組實現:http://www.cnblogs.com/over140/archive/2009/02/18/1387448.html 10、Database Backup與還原http://www.cnblogs.com/bobofsj11/archive/2008/07/02/1233799.html 11、Microsoft.VisualStudio.Xaml 載入錯誤 http://hi.baidu.com/zhang1su2juan3/blog/item/cf4a45f2318c24c00a46e0fc.html