Google Weather
Skip Navigation Links.

Google Weather

Skip Navigation LinksHome :: ASP.NET :: C# :: Google Weather

Here's how you add a Google Weather Map to your aspx pages using C#

Just pass in the location and it will appear on the page in a nice table. Like this...

13 °C | 55 °F
Current: Partly Cloudy
Wind: Wind: W at 2 mph
Humidity: 94%
Thu
Clear
53°C | 69°C
Fri
Chance of Rain
57°C | 66°C
Sat
Chance of Rain
50°C | 68°C
Sun
Clear
46°C | 66°C

You need the image files (snow, rain etc.) locally. here's a zip file with them in Substitute the path to where you put them where you see uri2Root.

/// <summary>

/// display a google weather map on the page

/// </summary>

/// <param name="location">this accepts a wide range of parameters like [city],[country] e.g. London,England - or postcodes, ISO country codes (UK,DE etc.), Lat/long</param>

public static void GoogleWeather(string location)

{

The rest of this page is hidden, you must be a member to view it

To become a member and get immediate access to the course please join here Free!

Already Enrolled? please click here to Login

Next >> Benchmark Testing
top of page
©1996/2010 BennySutton.com
all images © their respective owners
Powered By Buy a business This site uses Thumbshots previews
  BensGuitars.com