/*
Hi Mudassar,
i'm sorry!!
Sign in with Twitter asp.net source, the result of running the label name does not appear.
Why Korean writing in the textbox when the check on Twitter? '?' Is denoted by. English is fine.
This also the language of any DLL problem?
Help us to help solve.
*/
if (!IsPostBack)
{
if (TwitterConnect.IsAuthorized)
{
btnAuthorize.Enabled = false;
pnlTweet.Enabled = true;
if (TwitterConnect.IsDenied)
{
ClientScript.RegisterStartupScript(this.GetType(), "key", "alert('User has denied access.')", true);
}
TwitterConnect twitter = new TwitterConnect();
//LoggedIn User Twitter Profile Details
try
{
DataTable dt = twitter.FetchProfile();
imgProfile.ImageUrl = dt.Rows[0]["profile_image_url"].ToString();
lblName.Text = dt.Rows[0]["name"].ToString();// lblName.Text => '????'
lblTwitterId.Text = dt.Rows[0]["Id"].ToString();
lblScreenName.Text = dt.Rows[0]["screen_name"].ToString();
lblDescription.Text = dt.Rows[0]["description"].ToString();
lblTweets.Text = dt.Rows[0]["statuses_count"].ToString();
lblFollowers.Text = dt.Rows[0]["followers_count"].ToString();
lblFriends.Text = dt.Rows[0]["friends_count"].ToString();
lblFavorites.Text = dt.Rows[0]["favourites_count"].ToString();
lblLocation.Text = dt.Rows[0]["location"].ToString();
tblTwitter.Visible = true;
//Any other User Twitter Profile Details. Here jQueryFAQs
dt = twitter.FetchProfile("jQueryFAQs");
imgOtherProfile.ImageUrl = dt.Rows[0]["profile_image_url"].ToString();
lblOtherName.Text = dt.Rows[0]["name"].ToString();
lblOtherTwitterId.Text = dt.Rows[0]["Id"].ToString();
lblOtherScreenName.Text = dt.Rows[0]["screen_name"].ToString();
lblOtherDescription.Text = dt.Rows[0]["description"].ToString();
lblOtherTweets.Text = dt.Rows[0]["statuses_count"].ToString();
lblOtherFollowers.Text = dt.Rows[0]["followers_count"].ToString();
lblOtherFriends.Text = dt.Rows[0]["friends_count"].ToString();
lblOtherFavorites.Text = dt.Rows[0]["favourites_count"].ToString();
lblOtherLocation.Text = dt.Rows[0]["location"].ToString();
tblOtherTwitter.Visible = true;
btnLogin.Enabled = false;
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
if (TwitterConnect.IsDenied)
{
ClientScript.RegisterStartupScript(this.GetType(), "key", "alert('User has denied access.')", true);
}
}
#endregion
}
}