2011-06-01 76 views

回答

4

更新2016年8月9日:

List of Countries


只是做了快速搜索,发现这个网站:

http://madskristensen.net.web7.reliabledomainspace.com/post/XML-country-list.aspx

这里的直接链接到文件:

http://cid-247fb0008340dbcd.office.live.com/self.aspx/workstion/countries.xml

更新:代码来填充下拉列表与国家名单:

Dim doc = XDocument.Load("path to url\file") 

Dim countries = From c in doc.Descendants("country") 
       Select c.Value 

For Each country In countries 
    DropDownList.Add(country) 
Next 

DropDownList.DataBind() 
+0

没有在这一个? – HAJJAJ 2011-06-01 08:30:58

+0

添加了直接链接:) – aligray 2011-06-01 08:31:54

+0

您没有检查,有下载链接的Countries.xml文件。 – 2011-06-01 08:32:12