Wednesday 29 August 2012

Clear Control Values

void ResetControl(Control control)
        { 
            foreach (Control ctrl in control.Controls)
            {

                if (ctrl is TextBox)
                {
                    (ctrl as TextBox).Value = string.Empty;
                }

}
        }

The term 'Enable-SPSessionStateService' is not recognized as the name of a cmdlet, function…

Add-PSSnapin Microsoft.Sharepoint.Powershell

Enable-SPSessionStateService -DefaultProvision

Saturday 18 August 2012

Pass parameter to Web service method

var ddlAddressSelectedValue = $("#<%=ddlAddress.ClientID %>").val();
$("#<%=AddressHidden.ClientID %>").val(ddlAddressSelectedValue);

data = "{addressId:'" + ddlAddressSelectedValue + "'}";

Friday 3 August 2012

Multiple content in FAST Server

In Microsoft FAST Search Server 2010 for SharePoint

Clear-FASTSearchContentCollection sitecollectionName

Example:  Clear-FASTSearchContentCollection sp

FAST Search for SharePoint PowerShell Error: Failed to communicate with the WCF service

Run as Different User (hold down shift while right clicking on the icon), to run PowerShell with my fastuser account.