I want to validate the latitude and longitude. Right now, I check just so that the value is not empty, but I want a validation to check that it is a valid latidue or longitude.<
Alternatively you can use GeoCoordinate class that is built into .NET 4 (reference System.Device.dll). Its constructor throws on invalid longitude and latitude:
latitude
Type: System.Double
The latitude of the location. May range from -90.0 to 90.0.
longitude
Type: System.Double
The longitude of the location. May range from -180.0 to 180.0.