Hello Mudassar, login with twitter asp.net source,
the results of running the label name does not appear when you debug Unknown characters are encoded.
In addition, when writing on Twitter in txtbox korean language, but English is the character '???' Is denoted by.
Dll language you this also is the problem? I would like to 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();
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
}
}