Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all!! I need another help!!
Currently programming a twitter app on windows phone 7 in c#.
I tried all kinds of online example but it just dont work for me!!
I can enter my search terms, but nothing display in my listbox!
any solutions???
PLEASE AND THANKS!!!!!! ><</xml>
Posted

1 solution

I would suggest getting a sample off the web, running it verbatim and then changing it a bit at a time until it does what you want, then you'll find the difference along the way that is breaking it, and can ask a more specific question
 
Share this answer
 
Comments
xbolslock 9-Feb-12 22:40pm    
Hi, it always stop at one line. dont know why
Christian Graus 10-Feb-12 7:33am    
Then post the code, point out the line, etc. But if these are samples from their site, then the issue is almost certainly local to your computer or configuration. If you don't give us code to look at and maybe try to run, we can't really help.
xbolslock 11-Feb-12 2:05am    
I following the example on this website: http://weblogs.asp.net/scottgu/archive/2010/03/18/building-a-windows-phone-7-twitter-application-using-silverlight.aspx

void Twitter_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
if (e.Error != null)
return;
XElement xmlTweets = XElement.Parse(e.Result);
listBox1.ItemsSource = from tweet in xmlTweets.Descendants("status")
select new TwitterItem
{
ImageSource = tweet.Element("user").Element("profile_image_url").Value,
Message = tweet.Element("text").Value,
UserName = tweet.Element("user").Element("screen_name").Value
};
}

In this particular method, at this line:
XElement xmlTweets = XElement.Parse(e.Result);
they say that NotSupportedException

HOW???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900