using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using ASPSnippets.LinkedInAPI; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { LinkedInConnect.APIKey = "apikey;; LinkedInConnect.APISecret = "apisecretkey;; LinkedInConnect.RedirectUrl = Request.Url.AbsoluteUri.Split('?')[0]; if (LinkedInConnect.IsAuthorized) { pnlDetails.Visible = true; DataSet ds = LinkedInConnect.Fetch(); //imgPicture.ImageUrl = ds.Tables["person"].Rows[0]["picture-url"].ToString(); lblName.Text = ds.Tables["person"].Rows[0]["first-name"].ToString(); lblName.Text += " " + ds.Tables["person"].Rows[0]["last-name"].ToString(); lblEmailAddress.Text = ds.Tables["person"].Rows[0]["email-address"].ToString(); lblHeadline.Text = ds.Tables["person"].Rows[0]["headline"].ToString(); lblIndustry.Text = ds.Tables["person"].Rows[0]["industry"].ToString(); lblLinkedInId.Text = ds.Tables["person"].Rows[0]["id"].ToString(); //lblSpecialities.Text = ds.Tables["person"].Rows[0]["specialties"].ToString(); lblLocation.Text = ds.Tables["location"].Rows[0]["name"].ToString(); //imgPicture.ImageUrl = ds.Tables["person"].Rows[0]["picture-url"].ToString(); } } protected void Authorize(object sender, EventArgs e) { LinkedInConnect.Authorize(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)