Possible Duplicate:
Country, State, Province WebService?
This "orignal" link only shows web services or places I can get lists to insert manually. Does anyone know of a library / built in class / dll that wouldn't require hitting another server for the data and not require manual entry of each state?
I am currently adding support for Canada, Mexico, and Brazil, (and potentially more soon) to an ASP.NET website. The user can input their physical address including their state via drop down list. I currently have the US states added manually like:
states.Add(new ListItem("Alabama", "AL"));
states.Add(new ListItem("Alaska", "AK"));
etc ...
Before I go ahead and start manually creating lists for the additional countries, is there some pre-built class or library out there that can give me a list of states by passing it a country code? Example: someClass.getStatesFor("BR");
// would return a list/collection of states for Brazil.