Welcome to MSDN Blogs Sign in | Join | Help

August 2008 - Posts

Content Type - Setting up default content type programmatically

Here’s the sample to add and set a new content type as a default content type to a document library in a SharePoint site. Also this will hide the pervious default content type. SPSite oSPSite = new SPSite ( "" ); // Site URL SPWeb oSPWeb = oSPSite.OpenWeb();

WSS 3.0 - Valid properties to be used in FullText Query Search in Search.asmx

When we have valid SQL query something like ““Select Category from Scope()” and execute them using FullText Query Search in WSS 3.0 using Search Web Service, it throws “InvalidPropertyException”. This confirms that not all the properties can be used in
 
Page view tracker