SharePoint中的搜尋結果預設是不高亮顯示搜尋索引鍵的,最近我看到老外有一篇文章介紹如何?這個為了防止文章無法開啟,就把它轉載到這裡一下。原文地址:http://msd2d.com/newsletter_tip.aspx?section=sharepoint&id=c89e3424-d7e6-4f79-9c89-be219513357bHighlighting search words in the WSS search results pageSubmitted By:
IDENT_CURRENT returns the last identity value generated for a specific table in any session and any scope.@@IDENTITY returns the last identity value generated for any table in the current session, across all scopes.SCOPE_IDENTITY returns the last
using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace BitTree{ //TODO:列印二叉樹 class Constant { public static readonly string Space = " "; } class Program { static void
最近看discussion,有個話題比較有意思:定義了一個類 class DisplayedItem { public DisplayedItem(string name, bool isChecked) { Name = name; IsChecked = isChecked; } public string Name { get; set; } public
ButtonAutomationPeer bap = new ButtonAutomationPeer(myButton);IInvokeProvider iip = bap.GetPattern(PatternInterface.Invoke) as IInvokeProvider;iip.Invoke(); // This clicks the ButtonButtonAutomationPeer在namespace using
use master go declare @spid int,@bl int DECLARE s_cur CURSOR FOR select 0 ,blocked from (select * from sysprocesses where blocked>0 ) a where not exists(select * from (select * from sysprocesses where blocked>0 ) b where a.blocked=spid)
用VS內建的Unit Test測試一個方法時,若需要大量的輸入參數,可以按照以下方法把參數放在一個檔案(資料庫也可)裡,可以省去重複代碼。 假設要測試的方法為:static int Sum(int x, int y) { return x + y; } 右鍵這個方法,自動建立出unit test工程,這個大家都知道的,就不說了建立的測試代碼如下: /// <summary> ///A test for Sum
資料庫表結構如下要得到Channel account campaign這樣的樹型Xml結構, SQL 陳述式如下:select ch.ChannelName as "@Text", (select a.AccountName as "@Text", (select c.CampaignName as "@Text" from Campaign c