Popular Posts
javax.net.ssl.SSLHandshakeException: Connection closed by peer in Android 5.0 Lollipop Recently, there is a error occurs when access website via ssl connection like below although it worked fine several days ago. // Enable SSL... ADD ... THEN ... UNTIL ... data: begin of SERIES, N1 type I value 10, N2 type I value 20, N3 type I value 30, N4 type I value 40, ... jQuery serialize form to json $.fn.serializeObject = function() {     var o = {};     var a = this.serializeArray();     $.each(a, function() {         if (o[this.name]) ...
Stats
Active site feature
public void Main(string[] args)
{
    var siteCollectionUrl = "http://your_site_url";
    var featureId = "379c069c-c650-451c-8887-aaaf91bf5df8";
 
    using (var ctx = new ClientContext(siteCollectionUrl))
    {
        var web = ctx.Web;
        // activate feature
        ctx.Load(web);
        ctx.Load(web.Features);
        ctx.ExecuteQuery();
        web.Features.Add(new Guid(featureId), false, FeatureDefinitionScope.Site); ;
        ctx.ExecuteQuery();
    }
}