-1

How do i get the User`s Location (Country) in Asp.Net MVC from Request?

Stacker
  • 8,157
  • 18
  • 73
  • 135
  • Have you got a Country property in your model? Do you want to determine it based on the user agent? Do you want an IP lookup? What have you tried, where are you stuck? – CodeCaster Jul 30 '12 at 12:38
  • Possible duplication of http://stackoverflow.com/questions/1409108/how-to-get-visitor-location-country-state-and-city-using-asp-net – SidAhmed Jul 30 '12 at 12:39

2 Answers2

1

You may try to do a lookup by IP. But it's not 100% guaranteed result.

Sergei Rogovtcev
  • 5,804
  • 2
  • 22
  • 35
0
Request.Browser.UserLanguages[0]
Edi Wang
  • 3,547
  • 6
  • 33
  • 51