Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Multiple web.config files

Reply
Thread Tools

Multiple web.config files

 
 
=?Utf-8?B?Q3JhaWc=?=
Guest
Posts: n/a
 
      07-22-2005
Hi

I have an application which needs to display information in several
languages. I want to have the flexibility of web.config, I guess one
alternative is resource files; but I don't want to recomplie the application
everytime I modify the resource file. Another thing I can implement
IConfigurationSectionHandler to get custom settings which I can read and
interact with through ConfigurationManager.GetSection(...)

What approach do people suggest?

Craig
 
Reply With Quote
 
 
 
 
Cathal Connolly [C# MVP]
Guest
Posts: n/a
 
      07-23-2005
you can use external sattelite files (.resx), that can be changed without
recompiles. Take a look at page 3 and 4 of
http://www.ondotnet.com/pub/a/dotnet...1/localpt3.htm it provides a
useful example. If you're developing in 2.0, then it provides automatic
support for resource files, as long as you follow the naming conventions.
See
http://beta.asp.net/QUICKSTARTV20/as...alization.aspx

Cathal
"Craig" <> wrote in message
news:41C7B9B8-5259-41ED-B9C1-...
> Hi
>
> I have an application which needs to display information in several
> languages. I want to have the flexibility of web.config, I guess one
> alternative is resource files; but I don't want to recomplie the

application
> everytime I modify the resource file. Another thing I can implement
> IConfigurationSectionHandler to get custom settings which I can read and
> interact with through ConfigurationManager.GetSection(...)
>
> What approach do people suggest?
>
> Craig



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
#define and #undef influence over all the files (Multiple C Files) karthikbalaguru C Programming 3 11-27-2008 01:45 PM
multiple rake build files? large rake files thufir Ruby 3 04-12-2008 07:28 AM
how i can extract text from the PDF files,power point files,Ms word files? crazyprakash Java 4 10-30-2005 10:17 AM
Text files read multiple files into single file, and then recreate the multiple files googlinggoogler@hotmail.com Python 4 02-13-2005 05:44 PM
Beginner Help: Joining Multiple classes in multiple files? JHenstay C++ 3 01-11-2004 02:28 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57