In order to run these demos you need the following:
- ASP.NET 2.0
- Sql Server 2005 or Express, MSDE, SQL Server 2000
Database
This sample ships with the Internationalization Database in the APP_DATA directory. This database contains a subset of the Northwind Database for samples plus a localization table (Localizations) for the localized language resources. The Cultures, CustomerList and LocalizationAdmin forms are localized in English (Invariant) and German (to the best of my ability <s>)...
If you run SQLExpress you should just be able to run the application as is. If you only have SQL Server you will have to attach to the database in the APP_DATA directory directly. If you're using IIS make sure IIS has access to read/write the file (Express) or set the security in the connection string so that you can access the database (Sql 2005).
Configuration
The resource provider in the sample is configured to use the Internationalization database in App_Data by default and it uses the localization data found there. The wwDbResource configuration section includes a connection string and tablename for the database which you can override if you're not using Sql Express.
Connection String
For the connection string in wwDbResourceProvider you can use either a full connection string or the name of a 'ConnectionStrings' entry in web.config. The easiest way to configure your database connection string is just to set up the AspAjaxNet Connection string. This connection string is used both by the samples as well as the provider by default.
Creating a new Localization Resource Table
Obviously you can store the globalization data in any database so you can point it at any connection string of your choice. Note that the Admin interface can automatically create a new Localization table for you. To do this set your connectionString to the database of your choice and set the resourceTableName to the name of your choice. Run the admin form (LocalizationAdmin/LocalizeForm.aspx) - and you should get a notice that the table can not be found. Click on Create Table on the toolbar on the left to create the new table. Note whatever account you connect
Resource Provider Configuration
In addition the wwDbResourceProvider section contains other settings to configure the provider's execution environment. You can find more information on these settings in the help file.
Enabling the Resource Provider
To use the wwDbresourceProvider or wwDbSimpleResourceProvider you need to also enable the resource provider in ASP.NET in the <globalization> section. This Web.config is configured to use the wwDbSimpleResourceProvider and you can check the commented sections to see how the providers are hooked up.
File Requirements to run the ResourceProvider and Admin Interface