Tuesday, May 29, 2012

Make connection string from web.config

in your web application you can add the below line to read data configuration in web.config file

DataClassesDataContext lu = new DataClassesDataContext(System.Configuration.ConfigurationManager.ConnectionStrings["LikeWebPartDataConnection"].ConnectionString);

and add below line in appSettings section in web.config files
   

Wednesday, May 9, 2012

Enable Fast Search feature on SharePoint Publishing Site

Refer to
http://social.technet.microsoft.com/Forums/en-US/fastsharepoint/thread/d83894e3-fc7c-40e4-99ab-7ac1a5392265

I got the solution to enable FAST search site template for Publishing site with just one command

Enable-SPFeature –Id SearchExtensions –url


Hope this helps

Thursday, April 19, 2012

Clear-FASTSearchContentCollection : Failed to communicate with the WCF service.

According to this title error when clear fast search index using PowerShell command.
Clear-FASTSearchContentCollection -Name sp
and I got this error
Failed to communicate with the WCF service.
then i changed user account to run this command by Shift + Right Click on FAST Search

Then log on as FAST service account to run this command instead of current account.


Hope this helps.

Friday, December 2, 2011

XSLT on search results page



I spent a lot of time to solve why the value from managed property in Search results page doesn't appear in my XSLT template.
I just figured it out that xslt variable must be declared with the exactly same name with the managed property.

How stupid I'm.


   
   
   
   
   
   
   

Thursday, December 1, 2011

SharePoint Designer component for Drag N Drop and Office List support component

Many users wants to upload by drag and drop but it's not possible without SharePoint Foundation Component in SharePoint Designer setup package file.


There're 2 components requires for users who want to experience full functionality about SharePoint List.


  • Microsoft Access Web Datasheet Component: this component enable access like view and editing experience on SharePoint list.
  • Microsoft SharePoint Foundation Support: Enable multiple upload capability for your IE. don't forget to enable ActiveX control to enable this function also.