User information.

Discussion in 'ASP .Net' started by Fabrizio, Feb 16, 2005.

  1. Fabrizio

    Fabrizio Guest

    When an user get connect with my web application can I know from which
    location or which language he speaks?
     
    Fabrizio, Feb 16, 2005
    #1
    1. Advertising

  2. Fabrizio

    Kevin Guest

    Kevin, Feb 16, 2005
    #2
    1. Advertising

  3. // Get the user's preferred language.
    string sLang = Request.UserLanguages[0];
    // Create a CultureInfo object from it.
    CultureInfo CurrentCulture = new CultureInfo(sLang);
    lblCulture.Text = CurrentCulture.EnglishName + ": " +
    CurrentCulture.Name;

    Carl,
    ----------------------------------------------------------------------

    "Kevin" wrote:

    > see: www.aspsimply.com/aspnet/NetDetect.aspx
    > www.aspsimply.com/asm/ASMDetect.aspx
    >
    > regards
    >
    >
    > "Fabrizio" <> wrote in message
    > news:...
    > > When an user get connect with my web application can I know from which
    > > location or which language he speaks?
    > >
    > >

    >
    >
    >
     
    =?Utf-8?B?Q2FybA==?=, Feb 16, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. z. f.
    Replies:
    0
    Views:
    685
    z. f.
    Feb 3, 2005
  2. subrato
    Replies:
    8
    Views:
    918
    Juan T. Llibre
    Mar 14, 2006
  3. clercmedia
    Replies:
    2
    Views:
    32,312
    clercmedia
    Dec 9, 2005
  4. lerenard001
    Replies:
    0
    Views:
    425
    lerenard001
    Jul 7, 2008
  5. lerenard001
    Replies:
    0
    Views:
    476
    lerenard001
    Jul 9, 2008
Loading...

Share This Page