Aug 30, 2010

Sharepoint search in document library/list programmatically (using C#)

In sharepoint, it is generally required to limit search to a particular list or document library and display metadata properties. The example below shows an example FullTextSql query using the PATH managed property to limit your search to a particular list, and then the results are used to create the list item. You can bind results to gridview and can show metadata properties.You need to pass document library url and search text in the following method: