Reputation: 125
I am brand new when it comes to Windows Phone 7 development. I've downloaded Windows Phone SDK 7.1 and Microsoft Visual Studio 2010. For practice, I'm trying to make an app that will visit weather.com and pull the current local weather.
I know how to visit a website using the WebBrowser tool in the ToolBox but that's not quite what I want to do. I want it pull the weather when I launch the app. What would the XAML and/or C# code look like that allows me to do this?
Upvotes: 1
Views: 325
Reputation: 8472
Forget Apis and webbrowser. Use httprequest, Httpresponse, u have way more flexibility
system.web
Upvotes: 0
Reputation: 13399
You can try HtmlAgilityPack library to parse html. Or you can use WebClient
to download the data and parse it yourself. Also, check if you have any API for the weather network, that'll be much more easier and better for your app.
Upvotes: 2