CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/21/2005 3:37:02 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 181 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
slopera2000
Asp.Net User
[C#] Change the session culture12/21/2005 3:37:02 PM

0

Hello,

To internationalize my web application, I have to change dynamically the culture (the language). I have already done my ressource files.

I have try the following code (found in the section tutorial "Internationalizing Your Application") : Profile.SetPropertyValue("PreferredCulture", sLanguage);

but there is a runtime error : The settings property 'PreferredCulture' was not found.

Do you know what is the correct property name or the correct way to change the culture ?

Thanks for your answers.

St?phanie

Fredrik N
Asp.Net User
Re: [C#] Change the session culture12/22/2005 5:49:56 PM

0

When you use the Profile feature, you need to add the properties the Profile class should have to the profile section of the web.config file:

<profile>
    <properties>
       <add name="PreferredCulture"/>
        ...
   </properties>
</profile>

 

Here is a post on my blog with an example how you can use the profile feature to set the culture of the current thread.


/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Harvard business review on culture and change Authors: Harvard Business School Press, Harvard Business School, Pages: 179, Published: 2002
Diagnosing and changing organizational culture: based on the competing values framework Authors: Kim S. Cameron, Robert E. Quinn, Pages: 242, Published: 2005
International Seminar on Nuclear War and Planetary Emergencies, 34th session: energy, nuclear and renewable energy ... : "E. Majorana" Centre for Scientific Culture, Erice, Italy, 19-24 Aug. 2005 Authors: Richard C. Ragaini, Antonino Zichichi, Pages: 472, Published: 2006
Believing in a Media Culture Authors: Gretchen Hailer, Thomas Zanzig, Saint Mary's Press, Marilyn Kielbasa, Pages: 52, Published: 1996

Web:
[C#] Change the session culture - ASP.NET Forums To internationalize my web application, I have to change dynamically the culture (the language). I have already done my ressource files. ...
CodeProject: Changing web application Culture on the fly. Free ... C / C++ Language ... Second, we should change the application culture. ... be implemented in order to allow access to the web application state (session). ...
C-Change 09: Harnessing the power of project management - CIOL ... Feb 19, 2009 ... The other panelists in the session included Ajay Dhir, Group Chief Information Officer, ... We have to imbibe it as a culture in the organization. ... C-Change '09: Performance excellence through insight and innovation ...
C-CHANGE EXECUTIVE / LIFE COACHING For a complete profile please email [email protected] ... The Leadership Circle 360 Leadership Culture Survey for Project Teams Management ... For a discovery session or for more information please contact [email protected] ...
C - C h a n g e M e e t s a n d A c t s the general session of C-Change to order and. The Access Team met for five hours during .... Sustain a culture that promotes appropriate cancer-screening. ...

[C#] Change the session culture - ng.asp-net-forum ... [C#] Change the session culture, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls, Date: 12/21/2005 3: 37:02 ...

Videos:
Ron Lindeman The River visit: www.ronlindeman.com The River ( written by Bruce Springsteen, 1979) Recorded in the Blue White Studio at The Hague, Holland, May 11 ...
Charlie Rose - U.S. strategy in Iraq / Final Four preview ... Segment 1: Guest Host James Fallows from The Atlantic Monthly talks about lessons learned in Vietnam and the U.S. Military strategy in Iraq with ...
அகந்துக் Agantuk - (Bengali Film) (வங்காள ... ta.wikipedia.org - இவ்விணையத்தளத்தினூடாக தமிழில் கட்டுரைகள், தமிழில் எவ்வாறு ...
Charlie Rose - Thomas L. Friedman, columnist and author. An hour looking back and looking forward in foreign affairs with Thomas L. Friedman, author of "The World is Flat". Friedman is also a columnist ...
The Obama Deception - Die Obama Täuschung Deutsch / German ... Der neue Film von Alex Jones jetzt mit deutschem Synchronsprecher - Präsentiert von "Eloi"- Mein erster synchronisierter Film. 2 Tage fürs ...






running code conditionally in debug

what is the difference between string and string ?

trouble with radiobuttons

referencing usercontrol in subfolders

booking concept/algorithm...

application works fine on local machine, but get an error when i try to view a page from the development server

questing regadring compatibity

please help to explain namespace, implements, imports, inherits

resize

programatically post an asp.net page to an asp page

sessions

regex problem/question

how to divide a form into two forms, just like as we divide a frame into two frames

deploy??

file or assembly name helloobjvb, or one of its dependencies, was not found

how to apply bar code scanner to asp.net

use a web user control in a subdirectory

one web.config per site

public classes

access denied on interop

serializable

linking to another page

why are my files not being found?

import namespace

why doesn't this work?

split

what's the best way to do this?

how to detect open/close a browser ?

how to run a console application using asp.net

file.exists

   
  Privacy | Contact Us
All Times Are GMT