protected void Page_Load(object sender, EventArgs e) { ILinkedInService service = _linkedInService; try { NetworkStats networkStats = service.GetNetworkStatistics(); console.Text += Utilities.SerializeToXml <NetworkStats>(networkStats); } catch (LinkedInException lie) { console.Text += lie.Message; } }