Hi There!
I'm trying to create a User Registration page in ASP.NET and wondering what
is the best way to get the list of up-to-date Countries and Cities? Are
there any Web Services on the web that I can use to retrieve such
information? If not, what are the options?
Please, any suggestions and pointers will be very much appreciated!
Dave 7 3675
Since this list does not get deprecated that soon, why not create your own
web service/component? You can find a list at: http://www.answers.com/topic/list-of...ies-by-country
--
Manohar Kamath
Editor, .netWire www.dotnetwire.com
"David Freeman" <da********@wow owow.wow> wrote in message
news:%2******** **********@TK2M SFTNGP09.phx.gb l... Hi There!
I'm trying to create a User Registration page in ASP.NET and wondering
what is the best way to get the list of up-to-date Countries and Cities? Are there any Web Services on the web that I can use to retrieve such information? If not, what are the options?
Please, any suggestions and pointers will be very much appreciated!
Dave
Why reinvent the wheel ?
Use this free component : http://www.codeproject.com/aspnet/CountryCombo.asp
This one only has countries, but you can easily add cities.
You'll need to register with the Code Project
in order to download the source code, but it's free.
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message
news:eG******** ******@TK2MSFTN GP15.phx.gbl... Since this list does not get deprecated that soon, why not create your own web service/component? You can find a list at:
http://www.answers.com/topic/list-of...ies-by-country
-- Manohar Kamath Editor, .netWire www.dotnetwire.com
"David Freeman" <da********@wow owow.wow> wrote in message news:%2******** **********@TK2M SFTNGP09.phx.gb l... Hi There!
I'm trying to create a User Registration page in ASP.NET and wondering what is the best way to get the list of up-to-date Countries and Cities? Are there any Web Services on the web that I can use to retrieve such information? If not, what are the options?
Please, any suggestions and pointers will be very much appreciated!
Dave
Just looking at the article "Our control will populate the country names at
design time" -- not sure if I would use such an app which is a maintenance
nightmare. From the article I suggsted, once could just scrape the countries
and cities, and create some data source.
--
Manohar Kamath
Editor, .netWire www.dotnetwire.com
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:u7******** ******@TK2MSFTN GP12.phx.gbl... Why reinvent the wheel ?
Use this free component :
http://www.codeproject.com/aspnet/CountryCombo.asp
This one only has countries, but you can easily add cities.
You'll need to register with the Code Project in order to download the source code, but it's free. Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message news:eG******** ******@TK2MSFTN GP15.phx.gbl... Since this list does not get deprecated that soon, why not create your
own web service/component? You can find a list at:
http://www.answers.com/topic/list-of...ies-by-country -- Manohar Kamath Editor, .netWire www.dotnetwire.com
"David Freeman" <da********@wow owow.wow> wrote in message news:%2******** **********@TK2M SFTNGP09.phx.gb l... Hi There!
I'm trying to create a User Registration page in ASP.NET and wondering what is the best way to get the list of up-to-date Countries and Cities? Are there any Web Services on the web that I can use to retrieve such information? If not, what are the options?
Please, any suggestions and pointers will be very much appreciated!
Dave
heh, heh...
Hi, Manohar.
re: not sure if I would use such an app which is a maintenance nightmare.
Why would you think it's "a maintenace nightmare" ?
How many countries are created every year ?
re:Our control will populate the country names at design time
Yup, and then it runs as a compiled assembly, in memory.
You need to change something ? Add a country/city ?
Change the source, recomplie, and you're good to go.
No big deal.
re: once could just scrape the countries and cities, and create some data source.
Easier said than done, and you're still relying on changes
which happen at some site whose html format might change,
requiring a re-coding of the scrape.
I think I'd rather modify the source for the control
I suggested ( complete source is included ) to add
the capital cities, and then use *that*.
Updates could, still, be made by checking that list
you suggest, but relying on a control made by yourself
is bound to provide better results than relying on a page
scrape which might change at an inconvenient time,
or which might be unavailable for whatever reason.
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message
news:uu******** ******@TK2MSFTN GP15.phx.gbl... Just looking at the article "Our control will populate the country names at design time" -- not sure if I would use such an app which is a maintenance nightmare. From the article I suggsted, once could just scrape the countries and cities, and create some data source.
-- Manohar Kamath Editor, .netWire www.dotnetwire.com
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:u7******** ******@TK2MSFTN GP12.phx.gbl... Why reinvent the wheel ?
Use this free component :
http://www.codeproject.com/aspnet/CountryCombo.asp
This one only has countries, but you can easily add cities.
You'll need to register with the Code Project in order to download the source code, but it's free.
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message news:eG******** ******@TK2MSFTN GP15.phx.gbl... > Since this list does not get deprecated that soon, why not > create your own web service/component? You can find a list at: > http://www.answers.com/topic/list-of...ies-by-country > > -- > Manohar Kamath > Editor, .netWire > www.dotnetwire.com
> "David Freeman" <da********@wow owow.wow> wrote in message > news:%2******** **********@TK2M SFTNGP09.phx.gb l... >> Hi There! >> >> I'm trying to create a User Registration page in ASP.NET and wondering > what >> is the best way to get the list of up-to-date Countries and Cities? >> Are >> there any Web Services on the web that I can use to retrieve such >> information? If not, what are the options? >> >> Please, any suggestions and pointers will be very much appreciated! >> >> Dave
> Why would you think it's "a maintenace nightmare" ?
Nothing against the code, but anything that is hard-coded is maintenance
risk -- if not in the immediate future, but soon thereafter. Plus, it is
adds to the inflexibility. Consider that you want to share the data with
another app, but you want to add new attributes like population, area, etc.
Doing so would require not only changing the data, but also changing the
app, with recompile. That would also mean the clients of the app need to
change, or you have to create a new version to cater to the new requirement. Easier said than done, and you're still relying on changes which happen at some site whose html format might change, requiring a re-coding of the scrape.
I didn't mean to use the site itself a data source, just that there was a
list of countries and cities, and the person could scrape that list to
create a data souce -- XML file, database, etc.
--
Manohar Kamath
Editor, .netWire www.dotnetwire.com
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:Ol******** *****@TK2MSFTNG P15.phx.gbl... heh, heh...
Hi, Manohar.
re: not sure if I would use such an app which is a maintenance nightmare.
Why would you think it's "a maintenace nightmare" ? How many countries are created every year ?
re:Our control will populate the country names at design time
Yup, and then it runs as a compiled assembly, in memory.
You need to change something ? Add a country/city ? Change the source, recomplie, and you're good to go.
No big deal.
re: once could just scrape the countries and cities, and create some data source.
Easier said than done, and you're still relying on changes which happen at some site whose html format might change, requiring a re-coding of the scrape.
I think I'd rather modify the source for the control I suggested ( complete source is included ) to add the capital cities, and then use *that*.
Updates could, still, be made by checking that list you suggest, but relying on a control made by yourself is bound to provide better results than relying on a page scrape which might change at an inconvenient time, or which might be unavailable for whatever reason. Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message news:uu******** ******@TK2MSFTN GP15.phx.gbl... Just looking at the article "Our control will populate the country names at design time" -- not sure if I would use such an app which is a
maintenance nightmare. From the article I suggsted, once could just scrape the countries and cities, and create some data source.
-- Manohar Kamath Editor, .netWire www.dotnetwire.com
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:u7******** ******@TK2MSFTN GP12.phx.gbl... Why reinvent the wheel ?
Use this free component :
http://www.codeproject.com/aspnet/CountryCombo.asp
This one only has countries, but you can easily add cities.
You'll need to register with the Code Project in order to download the source code, but it's free.
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== ======= "Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message news:eG******** ******@TK2MSFTN GP15.phx.gbl... > Since this list does not get deprecated that soon, why not > create your own web service/component? You can find a list at: >
http://www.answers.com/topic/list-of...ies-by-country > > -- > Manohar Kamath > Editor, .netWire > www.dotnetwire.com
> "David Freeman" <da********@wow owow.wow> wrote in message > news:%2******** **********@TK2M SFTNGP09.phx.gb l... >> Hi There! >> >> I'm trying to create a User Registration page in ASP.NET and
wondering > what >> is the best way to get the list of up-to-date Countries and Cities? >> Are >> there any Web Services on the web that I can use to retrieve such >> information? If not, what are the options? >> >> Please, any suggestions and pointers will be very much appreciated! >> >> Dave
re: anything that is hard-coded is maintenance risk
And, presumably, something which isn't hard-coded,
but -instead- relies on some other method isn't ?
re:you want to add new attributes like population, area
That wan't the problem posed, though.
This is a simple country/city dropdown list,
which you can reuse in a number of apps, Manohar.
Tell me something, regarding :
I didn't mean to use the site itself a data source, just that there was a list of countries and cities, and the person could scrape that list to create a data source -- XML file, database, etc.
Wouldn't maintaining *that* data source
become a "maintenanc e nightmare", too ?
A list is a list is a list.
A simple country/city list will need updating at some point,
whenever a new country or a new city is added, and using
an XML file or a table in a database as a data source only
adds an unnecesary level of complexity to a simple dropdown,
wouldn't you say ?
If every time you need to populate a simple dropdown,
you need to hit a database or an XML file, that's
bound to perform slower than hitting an assembly which
will be initialized the first time, but will run from memory
from that point on.
It's no big thing, but I like the idea of
a dropdown initialized from an assembly.
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. Why would you think it's "a maintenace nightmare" ?
Nothing against the code, but anything that is hard-coded is maintenance risk -- if not in the immediate future, but soon thereafter. Plus, it is adds to the inflexibility. Consider that you want to share the data with another app, but you want to add new attributes like population, area, etc. Doing so would require not only changing the data, but also changing the app, with recompile. That would also mean the clients of the app need to change, or you have to create a new version to cater to the new requirement.
Easier said than done, and you're still relying on changes which happen at some site whose html format might change, requiring a re-coding of the scrape.
I didn't mean to use the site itself a data source, just that there was a list of countries and cities, and the person could scrape that list to create a data souce -- XML file, database, etc.
-- Manohar Kamath Editor, .netWire www.dotnetwire.com
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:Ol******** *****@TK2MSFTNG P15.phx.gbl... heh, heh...
Hi, Manohar.
re: > not sure if I would use such an app > which is a maintenance nightmare.
Why would you think it's "a maintenace nightmare" ? How many countries are created every year ?
re: >Our control will populate the country names at design time
Yup, and then it runs as a compiled assembly, in memory.
You need to change something ? Add a country/city ? Change the source, recomplie, and you're good to go.
No big deal.
re: > once could just scrape the countries > and cities, and create some data source.
Easier said than done, and you're still relying on changes which happen at some site whose html format might change, requiring a re-coding of the scrape.
I think I'd rather modify the source for the control I suggested ( complete source is included ) to add the capital cities, and then use *that*.
Updates could, still, be made by checking that list you suggest, but relying on a control made by yourself is bound to provide better results than relying on a page scrape which might change at an inconvenient time, or which might be unavailable for whatever reason. Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message news:uu******** ******@TK2MSFTN GP15.phx.gbl... > Just looking at the article "Our control will populate the country > names > at > design time" -- not sure if I would use such an app which is a maintenance > nightmare. From the article I suggsted, once could just scrape the > countries > and cities, and create some data source. > > -- > Manohar Kamath > Editor, .netWire > www.dotnetwire.com
> "Juan T. Llibre" <no***********@ nowhere.com> wrote in message > news:u7******** ******@TK2MSFTN GP12.phx.gbl... >> Why reinvent the wheel ? >> >> Use this free component : >> >> http://www.codeproject.com/aspnet/CountryCombo.asp >> >> This one only has countries, but you can easily add cities. >> >> You'll need to register with the Code Project >> in order to download the source code, but it's free. >> >> Juan T. Llibre >> ASP.NET MVP >> http://asp.net.do/foros/ >> Foros de ASP.NET en Español >> Ven, y hablemos de ASP.NET... >> =============== =======
>> "Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message >> news:eG******** ******@TK2MSFTN GP15.phx.gbl... >> > Since this list does not get deprecated that soon, why not >> > create your own web service/component? You can find a list at: >> > > http://www.answers.com/topic/list-of...ies-by-country >> > >> > -- >> > Manohar Kamath >> > Editor, .netWire >> > www.dotnetwire.com >> >> >> > "David Freeman" <da********@wow owow.wow> wrote in message >> > news:%2******** **********@TK2M SFTNGP09.phx.gb l... >> >> Hi There! >> >> >> >> I'm trying to create a User Registration page in ASP.NET and wondering >> > what >> >> is the best way to get the list of up-to-date Countries and Cities? >> >> Are >> >> there any Web Services on the web that I can use to retrieve such >> >> information? If not, what are the options? >> >> >> >> Please, any suggestions and pointers will be very much appreciated! >> >> >> >> Dave >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Pablo |
last post by:
Friends:
I need a database with countries and cities in english.
If anyone of you have one, please send it to me.
Thanks a lot
Pablo
|
by: Onur Bozkurt |
last post by:
Hi. I need countries and related cities database (for free). Does anyone
know where can I find one?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
|
by: bhavik |
last post by:
Is there a database in .Net which lists all countries, cities,
addresses, etc.
(first browse and select from avavilable countries, then once specified, all
available cities in this country can be browsed (dropdown) and finally the
roads.
if it is have. let me know that methods name.
Regards,
bhavik
|
by: bhavik |
last post by:
Is there a database in .Net which lists all countries, cities,
addresses, etc.
(first browse and select from avavilable countries, then once specified, all
available cities in this country can be browsed (dropdown) and finally the
roads.
if it is have. let me know that methods name.
Regards,
bhavik
|
by: E.T. Grey |
last post by:
I need to populate a database with a list of countries of the world,
along with the cities (cities dosent need to be an extensive list). Does
anyone know where I can download such a file? - to save me having to
manually create such a file from (possibly various sources)?
MTIA
| |
by: Arun |
last post by:
Hi Group,
I was trying to link a combo box with a list control and having some
trouble with that. Could anyone please help me with that. Here's the
example of the scenario.
Combo Box ;- Country_Names (Pulls values from the country table(Just
the country_name value))
(Each country will have a table by itself, For Example USA will be a
|
by: Samuel Shulman |
last post by:
Hi
I wander how can I get the a list with all countries and the 2 characters
country alphabetic code etc.
Thank you,
Samuel Shulman
|
by: slinky |
last post by:
I want to get an opinion on some .aspx logic. Say for isntance you
have a user data submission form that amongst other things is
gathering STATE and COUNTRY information of which appear in a
dropdownlist.
If one is already using both an .aspx page and is using a SQLserver
database, why not just place these two lists into a table instead of...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |