void fnActivity()
        {
            string strEndpoint = "https://[endpoint].my.salesforce.com/services/Soap/c/21.0/00D300000000mlx";
            System.Net.ServicePointManager.SecurityProtocol = (System.Net.SecurityProtocolType)3072;
            SforceService2.SoapClient sc = new SforceService2.SoapClient();
            sc = new SforceService2.SoapClient();
            sc.Endpoint.Address = new System.ServiceModel.EndpointAddress(strEndpoint);
            SforceService2.SessionHeader sh = new SforceService2.SessionHeader();
            sh.sessionId = "[insert access token or use lrlogin]";
            SforceService2.QueryResult qr;
            string strQuery;
            strQuery = "SELECT Id, Description FROM Task where Account.Id = '[account id]";
            sc.query(sh, null, null, null, strQuery, out qr);
            foreach (SforceService2.Task item in qr.records)
            {
                Response.Write(item.Id);
                Response.Write(item.Description);
            }
        }