-->
How to Get State/Province/City Name from the DataSource?
Posted 12-05-2007 at 10:15 AM by mrgopi.krishna
Hi All,
Can any one help me in finding out programatically(VB.NET) the State/City list for a given DataSource(MapPoint.NA).
I need to do this, so that once the data source is selected, I fill the list of countries (if any) in the dropdownbox, on selecting the country I need to populate the state/province repective to this state in another dropdown and so the city.
I need to get all this info from the MapPoint.NA datasource.
I found a clue in an article and tried to explore that, below is my code, correct me if I'm wrong.
'Assume proper declarations are done
entitytypes = CommonService.GetEntityTypes("MapPoint.NA")
ForEach et As EntityType In entitytypes
If et.DisplayName.ToLower().Trim() = "texas"Then
MsgBox(et.DisplayName & " : " & et.Name & " : " & et.Definition & " : " & et.ParentName)
EndIf
Next
Many thanks in Advance
Thanks
Krishna
Can any one help me in finding out programatically(VB.NET) the State/City list for a given DataSource(MapPoint.NA).
I need to do this, so that once the data source is selected, I fill the list of countries (if any) in the dropdownbox, on selecting the country I need to populate the state/province repective to this state in another dropdown and so the city.
I need to get all this info from the MapPoint.NA datasource.
I found a clue in an article and tried to explore that, below is my code, correct me if I'm wrong.
'Assume proper declarations are done
entitytypes = CommonService.GetEntityTypes("MapPoint.NA")
ForEach et As EntityType In entitytypes
If et.DisplayName.ToLower().Trim() = "texas"Then
MsgBox(et.DisplayName & " : " & et.Name & " : " & et.Definition & " : " & et.ParentName)
EndIf
Next
Many thanks in Advance
Thanks
Krishna












