Microsoft Technology, .Net, BizTalk, Sharepoint & etc.

Liedong(Ken) Zheng, Senior SharePoint Developer at SIMPLOT

Archive for May 15th, 2008

Add new search scope into display group

Posted by ken zheng on May 15, 2008

Go to Site Setting on your intranet, under Site Collection Administration, click Search Scope.

Select Search Dropdown and tick the search scope

Posted in Sharepoint | Tagged: | Leave a Comment »

Datatable sort and iteration

Posted by ken zheng on May 15, 2008

Datatable dt = ???;

 dt.DefaultView.Sort = SortByName;

            int i = 1;
            foreach (DataRowView da in dt.DefaultView)
            {
               _results.Add(CreateEntry(i, DateTime.Today, da["Title"].ToString(),
                            da["Path"].ToString(), da["Author"].ToString(), da["HitHighlightedSummary"].ToString()));
               i++;
            }

Posted in .Net | Tagged: , , | Leave a Comment »