Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to know the name of the country ?

How to know the name of the country ?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadmintutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Subrahmanyam K
    wrote on last edited by
    #1

    Hi, How to know the region(country) from where a request has been initiated to a web server in ASP.NET? eg: Suppose the web server is located in US and a person has requested for a page from some other country say India, In this scenario, how the information about the name of the country(India) from where the request has initiated can be known? Thanks in advance.

    Subrahmanyam K

    M 1 Reply Last reply
    0
    • S Subrahmanyam K

      Hi, How to know the region(country) from where a request has been initiated to a web server in ASP.NET? eg: Suppose the web server is located in US and a person has requested for a page from some other country say India, In this scenario, how the information about the name of the country(India) from where the request has initiated can be known? Thanks in advance.

      Subrahmanyam K

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Hi there. The only method I know of is by retrieving the browser's IP address and comparing to a database. This article describes this: http://www.4guysfromrolla.com/aspfaqs/ShowFAQ.asp?FAQID=179[^] But it's a method with flaws (which the article also describes). If your goal is to provide personalized settings to users based on location, you may just want to let the users select the location for themselves and store that as Profile information.

      S 1 Reply Last reply
      0
      • M Mike Ellison

        Hi there. The only method I know of is by retrieving the browser's IP address and comparing to a database. This article describes this: http://www.4guysfromrolla.com/aspfaqs/ShowFAQ.asp?FAQID=179[^] But it's a method with flaws (which the article also describes). If your goal is to provide personalized settings to users based on location, you may just want to let the users select the location for themselves and store that as Profile information.

        S Offline
        S Offline
        Subrahmanyam K
        wrote on last edited by
        #3

        Hi Mike!!! Thanks a lot for the information.

        Subrahmanyam K

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups