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