ASP.Net Code Library

Server Controls Library Download .zip file

Release 1 for ASP.Net 3.5 (12th October 2008)

Controls

  • Country Drop Down List

Features

  1. Data in 5 languages: English, French, German, Italian and Spanish.
  2. Globalization sensitive: picks the language in which the control runs.
  3. Data from built-in resources, XML or SOAP web service.
  4. Compatible with all standard DropDownList features such as Skins and logged in user Themes.
  5. XML code documentation and Visual Studio Intellisense.

Sample code

<%@ Register TagPrefix="cws"
  Namespace="sharedLibrary" Assembly="sharedLibrary" %>

Simple country drop down list

<cws:countryDropDownList runat="server" />

Default countries from embedded resources and picking the language from the globalization setting of the page in which the control is placed.

Country drop down lists with a language property

  • <cws:countryDropDownList runat="server" Language="English" />
  • <cws:countryDropDownList runat="server" Language="French" />
  • <cws:countryDropDownList runat="server" Language="German" />
  • <cws:countryDropDownList runat="server" Language="Italian" />
  • <cws:countryDropDownList runat="server" Language="Spanish" />

Default countries from embedded resources with the language set rather than picked automatically from page globalization setting.

Country drop down lists with XML files

  • <cws:countryDropDownList runat="server"
      Xml="http://www.nadjibamar.co.uk/cws/1/country/de/country.xml" />
  • <cws:countryDropDownList runat="server"
      SelectCountry="...Choisir un pays..."
      Xml="http://www.nadjibamar.co.uk/cws/1/country/fr/country.xml" />

Countries can use any XML file that's correctly formed, after the standard XML files I provide. The country selection message can optionally be specified.

Country drop down lists with SOAP Web Service

  • <cws:countryDropDownList runat="server" EnableSOAP="true" />
  • <cws:countryDropDownList runat="server"
      Language="English" EnableSoap="true" />
  • <cws:countryDropDownList runat="server"
      Language="French" EnableSoap="true" />
  • <cws:countryDropDownList runat="server"
      Language="German" EnableSoap="true" />
  • <cws:countryDropDownList runat="server"
      Language="Italian" EnableSoap="true" />
  • <cws:countryDropDownList runat="server"
      Language="Spanish" EnableSoap="true" />

The SOAP Web Service I provide can be used to populate the country list. The language may or may not be specified. When it's not specified, the globalization setting of the page is used.

Flower