EXT.NET 3.0.0 RELEASED!
Now with Tablet Support!
Ext.NET 3.0.0 is here with lots of new cool features and now with tablet support! Check Examples Explorer now to see it in action or download and test it yourself for free!
Results 1 to 2 of 2

Thread: How to setting global Locale ?

  1. #1
    Member
    Join Date
    Feb 2009
    Location
    Posts
    7

    How to setting global Locale ?

    Hi,
    My project work on "zh_CN" language,and i know use this way to set current page
    Code:
    <ext:ScriptManager ID="ScriptManager1" runat="server" Locale="zh_CN" />
    but i want to all pages are set locale to "zh_CN"
    how to do it?

  2. #2
    Ext.NET - Dev Team geoffrey.mcgill's Avatar
    Join Date
    Jan 2008
    Location
    Canada
    Posts
    8,699

    RE: How to setting global Locale ?

    The .Locale property is a Global property, so you can set any one of the following locations:

    1. ScriptManagerÂÂ*


    Code:
    <ext:ScriptManager Locale="zh_CN" />
    2. ApplicationÂÂ*


    Code:
    HttpContext.Current.Application["Coolite.Locale"] = "zh_CN"
    3. Session


    Code:
    HttpContext.Current.Session["Coolite.Locale"] = "zh_CN"
    4. Web.config


    <coolite Locale="zh_CN" />


    More information on setting Global properties is available at the following location, seeÂÂ*http://forums.ext.net/showthread.php?postid=29.aspx


    Hope this helps.


    Geoffrey McGill
    Ext.NET, Inc.
    Founder, and Dev Team

    Ext.NET Examples | Ext.NET API Docs | ExtJS API Docs | @extnet | Jobs

Similar Threads

  1. Locale
    By flaviodamaia in forum 1.x Help
    Replies: 0
    Last Post: Jul 08, 2010, 1:25 PM
  2. Locale Greek!
    By tears in forum 1.x Help
    Replies: 0
    Last Post: Dec 03, 2009, 11:19 AM
  3. Replies: 10
    Last Post: May 06, 2009, 12:24 AM
  4. help ! scriptmanager with no locale protery
    By NETCRAZY in forum 1.x Help
    Replies: 1
    Last Post: Mar 23, 2009, 10:04 AM
  5. No ScriptManager1.Locale !
    By Nime in forum 1.x Help
    Replies: 1
    Last Post: Feb 04, 2009, 11:16 AM

Posting Permissions