>>
Home

>>
Books

>>
Enterprise Services Book

>>
Courses

>>
Articles

>>
Partner

>>
Downloads

>>
About Me

>>
German






File Name: Custom ResourceReader
File Size: 144,262 bytes
Downloaded: 8615 times
Posted by CNagel on Sunday, July 06, 2003 (EST)
Click here to download this file
A sample implemenation of a custom ResourceReader to read resource information from the database instead of using resource files or satellite assemblies.
The second project implements a custom CultureInfo (EnterpriseCultureInfo) to make localization to Klingon and Vulcano possible.
 

1. install the sample database TechEdDemo in SQL Server.

This database only has a single table Messages with a single column for every localization.

2. the project Nagel.Demos.ResourceReader includes a library with three classes to read resources from the database:

  • DBResourceReader
    This class reads localized resources from the database, and stores the results in a Hashtable.
  • DBResourceSet
    Includes a localized resource; uses DBResourceReader to read resources.
  • DBResourceManager
    Manages multiple localizations. Stores multiple DBResourceSets in a Hashtable

3. the project Nagel.Demos.Enterprise includes the class EnterpriseCultureInfo. EnterpriseCultureInfo derives from CultureInfo to make translations to Klingon and Vulcano possible.

Comments:

What about using it explicitly?
By KaaN on Friday, August 19, 2005 (EST)

To do localization programmatically you don't need to override all these classes. It goes easier.

 

How about using it explicitly like this?

 

<asp:Label ID="Label1" runat=server Text="<%$ Resources:Name %>" />

 

Reply to this Comment
 

This is .NET 1.1 Specific
By Tyrven on Wednesday, March 22, 2006 (EST)
To Kaan: He posted the original model in 2003, which is prior to .NET 2.0 shipping with the declarative syntax. There are other articles now posted on this site with .NET 2.0 models available.

Reply to this Comment
 

lah1 - Hello
By BluRiiks on Monday, April 09, 2007 (EST)
Hi <a href="http://levaquin.abc-herbal.com">levaquin</a> [url=http://levaquin.abc-herbal.com]levaquin[/url] <a href="http://levaquin.abc-herbal.com">levaquin</a> [url=http://levaquin.abc-herbal.com]levaquin[/url] <a href="http://levaquin.abc-herbal.com">levaquin</a> [url=http://levaquin.abc-herbal.com]levaquin[/url] <a href="http://levaquin.abc-herbal.com">levaquin</a> [url=http://levaquin.abc-herbal.com]levaquin[/url] Best wihes

Reply to this Comment
 

Add Your Comment



Christian Nagel's Home Page

Most Popular Articles
There are no articles

 

Most Popular Books
  • ASP to ASP.NET Migration Handbook
    In this book, professionals who have made the move from ASP to ASP.NET pass on their experience of the migration process. They will share with you the techniques that they have used in moving to ASP.NET, helping you to migrate successfully.


  • Professional C# Web Services: Building .NET Web Services with ASP.NET and .NET Remoting
    This book is for anyone who is interested in building web services using ASP.NET and .NET Remoting.

  • Pro .NET 1.1 Network Programming
    Networking Overview, Sockets, TCP, UDP, SNMP, Multicasting, HTTPS....

  •  

    Most Popular Links
  • Microsoft Regional Director
    Microsoft Regional Directors are independent developers and architects, volunteers chosen for their leadership in their local technology circles.

  • Global Knowledge
    Courses for .NET Programming, Microsoft System Admin, Cisco, Unix...

  • INETA
    International .NET Association - User Group of User Groups


  • Home   |  Books   |  Enterprise Services Book   |  Courses   |  Articles   |  Partner   |  Downloads   |  About Me   |  German