ASP.Net Code Library
Release 1 for ASP.Net 3.5 (12th October 2008)
Controls
Features
- Data in 5 languages:
English,
French,
German,
Italian and
Spanish.
- Globalization sensitive: picks the language in which the control runs.
- Data from built-in resources, XML or SOAP web service.
- Compatible with all standard DropDownList features such as Skins and logged in user Themes.
- 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.